What is the difference between getch() and getche()?



What is the difference between getch() and getche()?..

Answer / vinod kumar

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 after "enter" is given.

Is This Answer Correct ?    31 Yes 1 No

Post New Answer

More C Interview Questions

what will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }

9 Answers   HCL,


How would you find a cycle in a linked list?

3 Answers   NSN,


what is answer for perfect number????????????????

1 Answers  


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

3 Answers   Aricent, Manipal University,


Write the syntax and purpose of a switch statement in C.

1 Answers   Adobe,


what will be the output of this program main() { int i=1; while (i<=10); { i++; } }

11 Answers  


Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 5 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

1 Answers  


What are Storage Classes in C ?

32 Answers   CTS, HP, IBM, Maharaja Whiteline, Tamil Nadu Open University TNOU, TATA, TCS, Wipro,


Explain #pragma in C.

1 Answers  


what is the c.

3 Answers   IBM, TCS,


why program counter is 16 bit?

3 Answers  


In a header file whether functions are declared or defined?

1 Answers   TISL,


Categories