Explain RAII (Resource Acquisition Is Initialization).
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• A programming idiom where resource allocation is tied to object lifetime. Destructors release resources.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• A programming idiom where resource allocation is tied to object lifetime. Destructors release resources.
| Is This Answer Correct ? | 0 Yes | 0 No |
• A programming idiom where resource allocation is tied to object lifetime. Destructors release resources.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Explain the difference between realloc() and free() in c++?
What is the use of namespace std in C++?
Is there any difference between dlearations int* x and int *x? If so tell me the difference?
How to defines the function in c++?
What is the difference between new() and malloc()?
What is a type library?
What is the best free c++ compiler for windows?
How to create a reference variable in C++
Why is main function important?