what is the difference between getch() and getchar()?

Answer Posted / shruti

@Nishi
the answer you have posted is wrong..

Getch() and getchar() are two inbuilt functions..

in getch()
the argument to the function is any key on the keyboard,
not necessarily be a character (A - Z).

getchar()
the argument is a character -> alphabet (A - Z)..

Is This Answer Correct ?    76 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it important to memset a variable, immediately after allocating memory to it ?

1555


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1630


What is the correct code to have following output in c using nested for loop?

613


Describe wild pointers in c?

640


Where static variables are stored in c?

588






What is #include stdio h?

687


What is c language used for?

559


Calculate 1*2*3*____*n using recursive function??

1518


What is c programming structure?

620


What do you mean by dynamic memory allocation in c?

651


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1633


what do you mean by inline function in C?

618


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5464


What is clrscr in c?

679


Explain how do I determine whether a character is numeric, alphabetic, and so on?

654