K Khang Lê New member Sep 21, 2021 #1 Which function is called by macro assert to terminate the execution? A. exit() B. atexit() C. abort() D. no function called
Which function is called by macro assert to terminate the execution? A. exit() B. atexit() C. abort() D. no function called
Nguyễn Nguyệt Ánh New member Sep 21, 2021 #2 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. Upvote 0 Downvote
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.