Is both getch() and getchar() functions are similar? if it is
similar means why these two functions are used for same usage?
if it is not similar means what is the difference?



Is both getch() and getchar() functions are similar? if it is similar means why these two function..

Answer / madhu.s.a

No ,its not same because getch()is used to get the output
screen and getchar() is used to get the single character
input.


I dont know whether it is correct or not.

Is This Answer Correct ?    21 Yes 8 No

Post New Answer

More C Interview Questions

Determine the code below, tell me exactly how many times is the operation sum++ performed ? for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;

5 Answers   ITCO, Wipro,


how to print value of e(exp1)up to required no of digits after decimal?

1 Answers  


struct node {struct node*temp,*new} prinf("%d",sizeof(struct node));

2 Answers  


write a program for even numbers?

19 Answers   TCS,


What is a void pointer in c?

0 Answers  






Write a program to print all permutations of a given string.

0 Answers   JPMorgan Chase,


write a program in c to read array check element is present or not?

1 Answers  


when i declare as: void main() { clrscr(); int a=10; printf("%d",a) } my problem that why generate a error in above programs. please tell me answer seriously .

4 Answers  


What is the output of the following program main();{printf ("chennai""superkings"}; a. Chennai b. superkings c. error d. Chennai superkings

6 Answers  


can we define a function in structure?

2 Answers  


Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }

4 Answers   Subex,


What is sizeof c?

0 Answers  


Categories