Multiple choice technology programming languages

What header file is needed for the function exit()?

  1. conio.h

  2. dos.h

  3. stdio.h

  4. stdlib.h

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The exit() function is defined in stdlib.h, which also declares other utility functions like malloc(), free(), and system(). Option C (stdio.h) is for input/output functions like printf(), and conio.h/dos.h are platform-specific headers not related to standard C library functions.