GeeksforGeeks » C/C++ Programming Questions

A C question

(2 posts)

Tags:

  1. geek4u
    guest
    Posted 1 year ago #

    Is there any functional dfference between getch() and getchar()?

  2. Vick
    Member
    Posted 1 year ago #

    getch() returns the character you typed without displaying it on the screen.
    getche() returns the character you typed by displaying(echoing) it on the screen.
    and finally, getchar() works similarly and echos the character that u typed on the screen and stops only after "enter" is given.
    getchar() is the only standard function among them.
    hope you understood!!
    all the best !!


Reply

You must log in to post.

RSS feed for this topic