Vidyalelo
C++ Programming · Q14

Exception Handling in C++

Programming · C++ Programming · question 14

Q14

What is the function of the 'assert' macro in C++?

A.
It throws an exception if a condition is false
Answer
B.
It catches exceptions
C.
It handles arithmetic errors
D.
It ensures proper memory allocation

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board