COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
0 VOID
|
|
PRINTF()
|
|
SCANF()
|
|
GETCH()
|
Detailed explanation-1: -The function “getch in c” is used to get a character as input from the user. The input provided by the user is not displayed on the output screen. Code execution is paused until a character is entered when a getch function is called. A getch() function returns the equivalent ASCII value for the character entered.
Detailed explanation-2: -The single character input/output functions are Getchar () and putchar (). Getchar() is used to get a single character and require key after input.
Detailed explanation-3: -getch() reads a single character from keyboard and displays the entered character without using enter key, it doesnot buffer any. getche() reads a single character from the keyboard and displays immediately on output screen without waiting for enter key.
Detailed explanation-4: -Read a single character. For example, char ch; scanf("%c", &ch); reads one character and stores that character into ch.