How to use puts() function to write string to stdout (print string) in C

1 Answer

0 votes
#include <stdio.h>
   
int main(void)
{
	char str[] = "just some text";
	puts(str);
	
	puts("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
	
    return 0;
}
  
/*
run:
  
just some text
ABCDEFGHIJKLMNOPQRSTUVWXYZ

*/

 



answered May 6, 2016 by avibootz

Related questions

1 answer 285 views
1 answer 204 views
1 answer 98 views
98 views asked Feb 4, 2023 by avibootz
2 answers 240 views
240 views asked Jul 14, 2020 by avibootz
...