what is the difference between getch() and getchar()?
Answer Posted / pinky
getchar() is a function call: it reads in a single
character and waits for the user to hit 'enter key' before
reading the character. This line is included because many
compiler environments will open a new console window, run
the program, and then close the window before you can see
the output. This command keeps that window from closing
because the program is not done yet because it waits for
you to hit enter. Including that line gives you time to see
the program run.
getch() returns back on reading any character(a-z) or any
hit to the keyboard.
| Is This Answer Correct ? | 34 Yes | 12 No |
Post New Answer View All Answers
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What are header files and what are its uses in C programming?
What is wrong with this initialization?
What is a header file?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
Can include files be nested?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Which header file is essential for using strcmp function?
Why pointers are used?
Can stdout be forced to print somewhere other than the screen?
Write a program to check palindrome number in c programming?
What is new line escape sequence?
What is getch?