Multiple choice

Which function terminates the execution of the program?

  1. break

  2. exit()

  3. goto

  4. none of the above

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

The exit() function, defined in stdlib.h, is used to terminate the entire program immediately, regardless of where it is called.