Answers for "get() put() stdin stdout C"

C
0

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;
}
Posted by: Guest on August-09-2021

Code answers related to "C"

Browse Popular Code Answers by Language