Topic: Computer Programming
The library function exit () causes as exit from
- A. the loop in which it occurs
- B. the block in which it occurs
- C. the functions in which it occurs
- D. the programme in which it occurs
Answer: D. the programme in which it occurs
Explanation: exit (): This is a C library function, exit () that can be used to cause a program to end. The exit () function is defined in header file, stdlib.h, you have to include the header file at the beginning of your program. A non zero argument to the exit() function tells the operating system that the program has terminated abnormally.