saving . . . saved getc() and getchar() has been deleted. getc() and getchar() has been hidden .
getc() and getchar()
Title
Question
clarify the difference between getch() and getc()

C-and-Cpp Strings 00-01 min 0-10 sec 29-02-20, 10:23 a.m. lavanya.kk2005@gmail.com

Answers:

getc():I<span style="color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px;">t reads a single character from a given input stream and returns the corresponding integer value</span>
<span style="color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px;">The difference between getc() and getchar() is getc() can read from any input stream, but getchar() reads from standard input. </span>
29-02-20, 10:30 a.m. smartykoneru@gmail.com


getch is available only in conio.h which is NOT standard C library, as conio.h is available only in windows systems.  getc can be used in any system.
29-02-20, 11:17 a.m. bhaskar76


One more difference is :
getc() will echo the character on screen so anyone can see which KEY is pressed.
While
getch() doesn't echo the character pressed by user.
29-02-20, 12:30 p.m. kapilshukla2006


Log-in to answer to this question.