Programming - Exceptions - Discussion

You Are Here :: Home > C++ Language > Exceptions - Discussion

 



Q.

Which type of program is recommended to include in try block?                         


A. static memory allocation B. dynamic memory allocation
C. const reference D. pointer

Answer: Option B
Explaination:

 


While during dynamic memory allocation, Your system may not have sufficient resources to handle it, So it is better to use it inside the try block.




Discussion

Your Comments Goes here...
NameDiscussion