FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
this function ask for a single character
A
0 VOID
B
PRINTF()
C
SCANF()
D
GETCH()
Explanation: 

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.

There is 1 question to complete.