:: 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 (2254)
 C++ interview questions  C++ Interview Questions (1111)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (646)
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 21 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 ?    46 Yes 30 No
# 6
# 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 13 No
Sudhir Tiwari
# 7
getch() helps in holding the console screen and helps in reading the codes properly 
Is This Answer Correct ?    12 Yes 5 No
# 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
Why data types in all programming languages have some range? Why ritche have disigned first time likethat?Why not a single data type can support all other types? Excel 2
What is the difference between big endian form and little endian form? write a code to convert big endian form to little endian and vice versa.. Aricent 4
What is the scope of static variables?   1
What is the result main() { char c=-64; int i=-32 unsigned int u =-16; if(c>i){ printf("pass1,"); if(c<u) printf("pass2"); else printf("Fail2");} else printf("Fail1); if(i<u) printf("pass2"); else printf("Fail2") } a)Pass1,Pass2 b)Pass1,Fail2 c)Fail1,Pass2 d)Fail1,Fail2 e)none IBM 9
what is the full form of c language Satyam 8
YBJBU6   1
how to reverse string "Hello World" by using pointers only. Without any temp var   1
int x=5; printf("%d%d%d",x,x<<2,x>>2); TANCET 2
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.   1
what is the differnce between AF_INET and PF_INET? Wipro 4
triangle number finding program... HCL 1
can u suggest me am in a confusion to choose whether to go to c programming or a software testing . am a graduate in   1
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.   ::