Puts() and gets_s() in action - C String

C examples for String:Display

Description

Puts() and gets_s() in action

Demo Code

#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);
}

Result


Related Tutorials