what is the use of getch() function in C program..
difference b/w getch() and getche()??
Answer Posted / sudhir tiwari
# 3 getch() returns to the program after hitting any key.
getche() waits for the character, read it and then returns
to the program
| Is This Answer Correct ? | 21 Yes | 17 No |
Post New Answer View All Answers
What is a pointer and how it is initialized?
State the difference between x3 and x[3].
What is int main () in c?
What will be your course of action for a push operation?
What is calloc malloc realloc in c?
What are the data types present in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What is uint8 in c?
What is array of pointers to string?
Explain what are the different data types in c?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
In which header file is the null macro defined?
What is the difference between a function and a method in c?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer