Question:
What is the return value for getch()?
Answer:
getch() function is specified in Conio.h header file, and gets a character from the keyboard.<br>Its prototype is:<br> int getch(void);<br><br>It obtains a character from stdin. Input is unbuffered, and this routine will return as soon as a character is available without waiting for a carriage return. The character is not echoed to stdout. Source: CoolInterview.com
Answered by: Krishna Pandey | Date: 8/3/2008
| Contact Krishna Pandey
The Return value of getch as boolean value.that is True/false.The getch is get the char means it return value as True otherwise it False. Source: CoolInterview.com
Answered by: arul | Date: 8/4/2008
| Contact arul
getch()it return the ascii value of the character it depends the specifire.<br>ex..<br><br>void main()<br>{<br> printf("%d",getch());<br>} Source: CoolInterview.com
Answered by: vivekpokhariyal | Date: 8/17/2008
| Contact vivekpokhariyal
It returns a function output. Source: CoolInterview.com
Answered by: Gaurav Samantaray | Date: 8/22/2008
| Contact Gaurav Samantaray
getch() returns a single-byte character or a KEY_ value or ERR. Source: CoolInterview.com
Answered by: Arnab | Date: 9/12/2008
| Contact Arnab
Getch returns the character read.There is no error return. Source: CoolInterview.com
Answered by: Rasool R.Y | Date: 9/19/2008
| Contact Rasool R.Y
it returns the character u read. Source: CoolInterview.com
Answered by: shashi | Date: 8/4/2010
| Contact shashi
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|