Multiple choice

Which function would you use if a single key is to be received through the keyboard?

  1. puts( );

  2. gets( );

  3. getchar( );

  4. none of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The getchar() function is specifically designed to read a single character from the standard input.