what is the difference between getch() and getchar()?
Answer Posted / m@ht@b ahm@d
getchar():- this function returns a character that has been recently typed. the typed character is echoed to the computer screen. after typing the appropriate character the user is required to press enter.
getch():- This function also returns a character that has been recently typed, bet neither the user is required to press enter key after entering the character nor the typed character echoed to the computer screen.
getche():- the advantage of this function over getchar() is that as soon as the user types a character, the character is immediately accepted, i.e. the user is not required to press enter key after typing a character.
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is extern storage class in c?
Is c is a high level language?
What is getch c?
What are run-time errors?
What is data types?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
What is wrong with this program statement?
How can I prevent another program from modifying part of a file that I am modifying?
Why use int main instead of void main?
When do we get logical errors?
Why static variable is used in c?
What is a const pointer in c?
What is the size of enum in bytes?