Multiple choice technology programming languages

Which of the following functions is not present in ANSI standard?

  1. getchar();

  2. getche();

  3. ungetc();

  4. getch();

Reveal answer Fill a bubble to check yourself
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.