Which function is called by macro assert to terminate the execution?

Khang Lê

New member
Which function is called by macro assert to terminate the execution?
A. exit()
B. atexit()
C. abort()
D. no function called
 
Answer: c
Explanation: assert macro calls abort() to abnormally terminate the execution. When the expression of the macro is zero then an error message is displayed on the standard error file and then the program execution is aborted.
 

Tìm kiếm

Back
Top