Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

C | Input and Output | Question 13

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads