Skip to content
Related Articles

Related Articles

Improve Article

C | Input and Output | Question 13

  • Difficulty Level : Basic
  • Last Updated : 28 Jun, 2021

What is the return type of getchar()?
(A) int
(B) char
(C) unsigned char
(D) float


Answer: (A)

Explanation: The return type of getchar() is int to accommodate EOF which indicates failure:

Quiz of this Question

Want to learn from the best curated videos and practice problems, check out the C Foundation Course for Basic to Advanced C.
My Personal Notes arrow_drop_up
Recommended Articles
Page :