Home » C Programming » C-Library-Functions » Question
  1. What does the ungetc function return for the following C expression?
    ungetc(c, fp);//where declarations are int c and FILE *fp
    1. Either returns character c or returns EOF for an error
    2. It returns EOF for an error
    3. It returns character c
    4. Both returns EOF for an error and returns character c
    5. None of these
Correct Option: A

Either returns character c or returns EOF for an error



Your comments will be displayed only after manual approval.