what is difference between getch() and getchar() in c language ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Baggam vinod
    New Member
    • Dec 2010
    • 1

    what is difference between getch() and getchar() in c language ?

    what is difference between getch() and getchar() in c language ?
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    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

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      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

      Working...