Can you explain the term "resource acquisition is
initialization?"
Answer / melos
RAAI is the concept of releasing the aquired
memory/resources when the object goes out of scope.
E.g. std::auto_ptr
| Is This Answer Correct ? | 6 Yes | 1 No |
What is c++ programming language?
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
Is it possible to have a recursive inline function in c++?
What is an adaptor class in c++?
implement stack using stack.h headerfile functions
1 Answers Exilant, GMG, Subex, University,
What is const pointer and const reference?
What are the three types of access specifiers in C++?
What is the difference between set and map in c++?
Can turbo c++ run c program?
What is set in c++?
What is oop in c++?
What is a mutable member?