C examples for String:Display
Puts() and gets_s() in action
#include <stdio.h> int main()//from ww w. jav a 2 s.co m { char friend1[20]; puts("Name some friend you know:"); gets_s(friend1); puts("Yeah, I think %s is a friend, too."); puts(friend1); return(0); }