Can you explain the term "resource acquisition is
initialization?"



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

Post New Answer

More C++ General Interview Questions

if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.

3 Answers  


What is split a string in c++?

1 Answers  


class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.

5 Answers   Quark,


what is VOID?

1 Answers  


Explain data encapsulation?

1 Answers  


Incase of a function declaration, what is extern means?

1 Answers  


What is auto used for in c++?

1 Answers  


How many keywords are used in c++?

1 Answers  


What is the difference between public and private data members?

1 Answers  


Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";

7 Answers   CTS,


Should I learn c++ c?

1 Answers  


If there are two catch statements, one for base and one for derived, which should come first?

1 Answers  


Categories