Open In App
Related Articles

C | Input and Output | Question 13

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report
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

Last Updated : 28 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads