Syntax: getchar( );
Syntax: scanf(“format string”, arguments);
Q31. Distinguish between the getch( ) and getche( ) functions of C.
Ans. 31. The following table gives the differences:
getch( ) getche( ) This function reads a character from the keyboard. This character
is not echoed on the screen.
This function also reads a character from the keyboard but the
character is echoed on screen.
It is used where the user does not want to show the input.
It is used where the user wants to show the input entered.
Q32. Distinguish between the gets( ) and puts( ) functions of C.
Ans. 32. The following table gives the differences: