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

Who is the founder of c language?

696


What are pragmas and what are they good for?

584


What is main function in c?

567


What is a union?

619


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

1872






When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

598


Is javascript written in c?

589


Can a local variable be volatile in c?

588


What is memory leak in c?

641


Is c programming hard?

586


What is hashing in c?

650


Can 'this' pointer by used in the constructor?

621


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

579


Stimulate calculator using Switch-case-default statement for two numbers

2458


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

650