C examples for String:String Console Input
Use gets_s to read string
#include <stdio.h> int main()//from ww w.java 2 s . com { char friend1[20]; printf("Name some friend you know:"); gets_s(friend1); printf("Yeah, I think %s is a friend, too.\n",friend1); return(0); }