How to write to stdout in C

2 Answers

0 votes
#include <stdio.h>

int main() {
	fputs("c programming\n", stdout);
}




/*
run:
  
c programming
 
*/

 



answered Jul 14, 2020 by avibootz
0 votes
#include <stdio.h>

int main() {
	fprintf(stdout, "c programming\n" );
}




/*
run:
  
c programming
 
*/

 



answered Jul 14, 2020 by avibootz

Related questions

1 answer 204 views
1 answer 99 views
99 views asked Feb 4, 2023 by avibootz
1 answer 238 views
1 answer 181 views
...