Multiple choice

Which of the following functions pushes the character read previously using getc() back into input stream pointed to by the file pointer?

  1. getc()

  2. GET

  3. fscanf()

  4. ungetc()

  5. ferror()

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

This function pushes the character read previously using getc() back into input stream pointed to by the file pointer.