0 votes 0 votes if getc returns an integer value, then why is it returning the value that a user inputs. #include <stdio.h> int main() { printf("%c", getc(stdin)); return(0); } Programming in C programming-in-c file-handling + – Khushal Kumar asked Jul 6, 2017 • edited Jul 7, 2019 by Cristine Khushal Kumar 333 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes It do return integer, which is ASCII value of given input( say c = 99 ,ascii value) but %c reads and converts back to characters corresponding to ASCII value. vijay_jr answered Jul 6, 2017 vijay_jr comment Share Follow See all 0 reply Please log in or register to add a comment.