This is a simple C Program which uses string functions gets() and puts() to read and display the content respectively.
OUTPUT :
PROGRAM :
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char name[20]; printf("Enter any name(String) : \t"); gets(name); printf("\n You Entered : " ); puts(name); return 0; }
OUTPUT :
C Programming - Strings - gets() and puts() |
No comments:
Post a Comment