Which of the following is true regarding stack unwinding in C++ exceptions? 

  • It is a process of releasing memory. 
  • It relates to multi-threading. 
  • It is the process of calling destructor functions. 
  • It is the process of rolling back a database transaction.
Stack unwinding in C++ refers to the process that takes place when an exception is thrown, and control is transferred from the point of the throw statement to the handler. During this, all the local objects in the intervening frames are properly destroyed.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *