Home » C++ Programming » Exception Handling » Question
  1. Which type of program is recommended to include in try block?
    1. const reference
    2. pointer
    3. static memory allocation
    4. dynamic memory allocation
    5. None of these
Correct Option: D

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.



Your comments will be displayed only after manual approval.