C examples for String:Display
puts() can display a string variable, only on a line by itself.
puts() always adds newline character.
#include <stdio.h> int main()//from ww w . j a v a2 s .c om { char friend1[20]; puts("Name some friend you know:"); gets_s(friend1); puts("Yeah, I think"); puts(friend1); puts("is a friend, too."); return(0); }