Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the use of getch() function in C program..
difference b/w getch() and getche()??

Answers were Sorted based on User's Feedback



what is the use of getch() function in C program.. difference b/w getch() and getche()??..

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

what is the use of getch() function in C program.. difference b/w getch() and getche()??..

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

what is the use of getch() function in C program.. difference b/w getch() and getche()??..

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

what is the use of getch() function in C program.. difference b/w getch() and getche()??..

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

what is the use of getch() function in C program.. difference b/w getch() and getche()??..

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

what is the use of getch() function in C program.. difference b/w getch() and getche()??..

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

what is the use of getch() function in C program.. difference b/w getch() and getche()??..

Answer / venkatesh kr

getch() is use in c langauge for hold the screen.

Is This Answer Correct ?    5 Yes 4 No

what is the use of getch() function in C program.. difference b/w getch() and getche()??..

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

what is the use of getch() function in C program.. difference b/w getch() and getche()??..

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

what is the use of getch() function in C program.. difference b/w getch() and getche()??..

Answer / mamatha

getch() is used for when we give the input that should be
hidden.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail

6 Answers   TCS,


What is the o/p of the follow pgm? #include<stdio.h> main() { char char_arr[5]=”ORACL”; char c=’E’; prinf(“%s\n”,strcat(char_arr,c)); } a:oracle b. oracl c.e d.none

2 Answers   Oracle,


Is main a keyword in c?

0 Answers  


What are loops in c?

0 Answers  


Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.

1 Answers  


What does main () mean in c?

0 Answers  


What are reserved words with a programming language?

0 Answers  


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

0 Answers   L&T,


what is the basis for selection of arrays or pointers as data structure in a program

0 Answers   TCS,


struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?

1 Answers   Wipro,


Give the Output : * * * * * * * * * *

2 Answers  


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

0 Answers   Case, IBM,


Categories