C++20 sections · 1024 units
Open in CourseQuiz: Full Review
Knowledge check
Check Your Understanding
Which of the following is true about RAII?
- A.Resources are acquired in the destructor and released in the constructor
- B.RAII only applies to file handles, not memory
- C.Resources are acquired in the constructor and released in the destructor
- D.Resources must be manually released using cleanup functions