C Program for unformatted input/output function gets() and puts()


//C Program for unformatted input/output function gets() and puts()


#include<stdio.h>
#include<conio.h>
void main()
{
char val[10];
clrscr();
printf("Enter the string : ");
gets(val);
printf("Entered data is : ");
puts(val);
getch();
}

=====================
OUTPUT:-

Enter the string: C program
Entered data is: C program               
                                     
=====================
                                    

Comments