Ex:- Putchar ( );
#include 'stdio.h' // Inserts stdio.h header file into Pgm void main( ) // Beginning of main function. { char in; // character declaration of variable in. printf (”enter one character”); //message to user in=getchar( ); // assign keyboard input value to in putchar (in); // out put ‘in’ value to standard screen. }
gets (str)
puts (str)
# include 'stdio.h' Void main ( ) { char s [80]; printf (“Type a string less than 80 characters:”); gets (s); printf (“The string types is:”); puts(s); }