:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Programming Languages >> C


 C interview questions  C Interview Questions (2265)
 C++ interview questions  C++ Interview Questions (1119)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (648)
what is the use of getch() function in C program..
difference b/w getch() and getche()??
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
# 1
getch() is for waiting the o/p screen til we enter the inputs 
Is This Answer Correct ?    258 Yes 63 No
# 2
getch() waits for the user to input a character and
displays the output till the user enters a character.As
soon as the user enters a character it transfers the
control back to the main function, without displaying what
character was entered.
getche() does the same thin but it displays the chacter e stands for echo.
Is This Answer Correct ?    177 Yes 22 No
# 3
getch() returns to the program after hitting any key.
getche() waits for the character, read it and then returns
to the program
Is This Answer Correct ?    95 Yes 30 No
# 4
getch() is used to wait the execution of program on console
unless program will skeep the output witout showing on
console of program in short it all time to user to see
output during the run time of program
Is This Answer Correct ?    34 Yes 15 No
Sachin Banaya
# 5
getch() is used to read the character,
but getche()is used to read and display character on output.
Is This Answer Correct ?    47 Yes 30 No
# 6
getch() helps in holding the console screen and helps in reading the codes properly 
Is This Answer Correct ?    12 Yes 5 No
# 7
# 3 getch() returns to the program after hitting any key.
getche() waits for the character, read it and then returns
to the program
Is This Answer Correct ?    20 Yes 14 No
Sudhir Tiwari
# 8
getch() and getche()
both are getting input charecter to user
but getche() display the that charecter to screen
Is This Answer Correct ?    8 Yes 3 No
# 9
Both getch() and getche() are used to read single character
there is very little difference
-getch() doesn't display output to screen if used without lvalue
-getche() display output to screen even if used without lvalue

following example will clear this.....
after running above programs...............
when you press any key, you'll exit from output screen
verify the output by pressing alt+F5
1. will not show anything
2.will show the key you were pressed......
hope you get it.............
Is This Answer Correct ?    6 Yes 1 No
# 10
Waiting the input for output screen.. 
Is This Answer Correct ?    5 Yes 1 No
Rajesh Kumar

Other C Interview Questions
  Question Asked @ Answers
what is the difference between postfix and prefix unary increment operators?   3
main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }   2
we compile c program in 32 processor and 64 bit processor .exe file is created in both the processors. if we want to run .exe file in 64 bit processor which is created in 32 bit processor. is that .exe file is run or not if it is not run why? HP 4
what is the code for getting the output as * ** *** Caritor 5
enum day = { jan = 1 ,feb=4, april, may} what is the value of may? a)4 b)5 c)6 d)11 e)none of the above HCL 8
What is meant by global static? why we have to use static variable instead of Global variable L&T 4
Consider the following C program. #include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain   2
Given a single Linked list with lakhs of nodes and length unknown how do you optimally delete the nth element from the list? Oracle 1
what is difference between null and nul in c language   2
macros and function are related in what aspect? a)recursion b)varying no of arguments c)hypochecking d)type declaration HCL 12
what defference between c and c++ ?   6
what does the following function print? func(int i) { if(i%2)return 0; eale return 1; } main() { int =3; i=func(i); i=func(i); printf("%d",i);} TCS 9
For more C Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::