What does RAII stand for and what does it guarantee?
- A Resource Acquisition Is Initialisation; resources are released when the owning object goes out of scope
- B Random Access Is Immediate; constant time lookup
- C Reference And Instance Isolation; objects are copied on assignment
- D Runtime Allocation In Increments; memory grows dynamically
Answer
Resource Acquisition Is Initialisation; resources are released when the owning object goes out of scope
Because destructors run during stack unwinding, cleanup happens even when an exception propagates, which is why RAII is central to exception safety.





