what is the use of getch() function in C program..
difference b/w getch() and getche()??
Answers were Sorted based on User's Feedback
Answer / divyansh and ankur
as in the case of getch(),whn user rturn to the program after hitting the key that charctr will be erad n get stored as comapred with getch () the compiler will not store the value
,as by pressing alt+f5 in case getche ()
u wil notice tht scren will show the charctr that u pressed to go back o the progrm as it willl not show tht chrctr in simple getch()..thank u buddy
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / sachin alawadhi
getch() function used to freeze the output screen after
the result and when the any key entered and return an ASCII
value of that character. But don't show what character was
entered by the user.
whereas getche() function shows ASCII value as well as
entered charachter.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / piyush srivastava
getch() function works to get character from the user,but it
is used to hold the output,it may have the alternatives but
it the easiest way to perform this action.
getch() only read the character from the user but getche
also display it on the output screen .
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / pravin
getch() is the function which only reserv our time and it
is portable to see the direct output without going into the
another menu. it gives us echoing. in simple wayit is the
shortcut for the output userscreen.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ambili
getch() is the function to see the out put console...thats true.
But is there any other reason for why we use getch()...is it
used for accepting characters?
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / satnam
getch() is used in making the programme of password. by the help of getch() function whatever password is inputted by user is not displayed on a screen.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / venkatesh kr
getch() is use in c langauge for hold the screen.
| Is This Answer Correct ? | 5 Yes | 4 No |
Answer / yashwant/9015785079
When you will run program, the program will exit only when you press a character, note that we are talking about a character.
so try pressing numlock, shift key etc (program will not exit if you press these keys) as these are not characters. Also try the program by removing getch(),in this case program will exit without waiting for a character being pressed from keyboard.
Common use of getch is that you can view the output (if any) of your program without having to open the output window if you are using turbo c compiler or if you are not running your program from command prompt.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / karan kakade
it helps to keep the o/p screen stabel, or else the o/p
screen would blink n will go to notepad where we write
prog....
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mamatha
getch() is used for when we give the input that should be
hidden.
| Is This Answer Correct ? | 1 Yes | 0 No |
how can i get this by using for loop? * ** * **** * ******
What is the Purpose of 'extern' keyword in a function declaration?
hi send me sample aptitude papers of cts?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.
What is a constant?
which is an algorithm for sorting in a growing Lexicographic order
int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain me output????
What is the use of getch ()?
Does free set pointer to null?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
what is the difference b/w compiler and debugger?