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 215 views
1 answer 103 views
103 views asked Feb 4, 2023 by avibootz
1 answer 241 views
1 answer 186 views
...