70. WRITE A C PROGRAM FOR GETS() AND PUTS()

/*C program For gets() and puts()*/

#include<stdio.h>
#include<conio.h>
int main()
{
char str[81];
puts("Enter a line of text:\n");
gets (str);
puts("You entered:\n")
puts(str);
grtch();
return 0;
}

output

enter a line of text:
kucet
you entered
kucet

Comments