Difference between getch() and gethe() function


Difference between getch() and gethe() function

The getche() function:
Syntax:
        getche();

This function is used to get a character from the input device as similar to getch()  function but the only difference is the entered character is displayed on the screen in getche() , and not displayed in getch() function.

Example program:
difference between getche and getch function in c


The output is
output for getche and getch program


You can see that in getch() the input u is not displayed while entering the input ,whereas in getche () the input w is displayed while entering the input.


Thank you ….

for more similar posts ,Link to blog home page : https://iamafutureprogrammer.blogspot.com/

Previous Post
Next Post
Related Posts

0 comments:

Popular Posts