The gets() function reads string from user and puts() function prints the string. Both functions are defined in <stdio.h> header file.
Let's see a simple program to read and write string using gets() and puts() functions.
Output:
Enter your name: Sonoo Jaiswal Your name is: Sonoo Jaiswal
No comments:
Post a Comment