what is difference between getch() and getchar() in c language ?
what is difference between getch() and getchar() in c language ?
Collapse
X
-
Tags: None
-
did you tried program and see. Its crystal clear you write a simplest program.
if your compiler dont support conio.h in that case it would be hard to know -
getchar is a Standard Library function (part of stdio.h). It is supported on all platforms.
getch is not part of the Standard (it is part of conio.h). Code that uses getch is nonportable.
For functional differences you should search for the man pages for stdio.h and conio.h.Comment
Comment