Answers for "how to print newline characters in c"

C
1

puts without newline c

fputs(input, stdout);
Posted by: Guest on December-31-2020
-1

printf n characters c

// Only 5 characters printed
const char * mystr = "This string is definitely longer than what we want to print.";
printf("Here are first 5 chars only: %.5sn", mystr);
Posted by: Guest on June-19-2020

Code answers related to "C"

Browse Popular Code Answers by Language