Use of getchar() ,putchar() functions
The use of getchar function is to capture or get the data / the typed character from (single chara) keyboard .
the putchar() is do just opposite of getchar()
It prints directly to the screen , so we dont need use the printf() function .
Look the program and output
here used getchar() function to get char.
putchar() and printf() function is used to print the given data.
No comments:
Post a Comment