Which of the following functions is not present in ANSI standard?
-
getchar();
-
getche();
-
ungetc();
-
getch();
B,D
Correct answer
Explanation
getche() and getch() are non-standard functions (common in Turbo C/C++ and Windows conio.h) that read characters with and without echo respectively. They are not part of the ANSI C standard library. getchar() and ungetc() are standard ANSI functions defined in stdio.h. Therefore options B and D are correct as the non-standard functions.