Multiple choice

If an integer is to be entered through keyboard, which function you would use?

  1. scanf( )

  2. gets( );

  3. getchar( );

  4. getche( );

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

The scanf() function is the standard library function used to read formatted input, including integers, from the keyboard.