get() put() stdin stdout C
/**
* USING gets() and puts()
* gets(): used to get a char string from stdin
* puts(): used to display a char string to stdout
*/
#include <stdio.h>
int main( ) {
char str[100];
printf( "Enter a value :");
gets( str );
printf( "\nYou entered: ");
puts( str );
return 0;
}