What is the difference between a constructor and a destructor in C++?
Answer / nashiinformaticssolutions
While a destructor is used to remove class objects, a constructor aids in initializing them. Both are invoked automatically: the constructor allocates memory instantly upon creating a new object, and the destructor deals with memory when destroying an existing one.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the difference between static and dynamic binding of functions?
What do nonglobal variables default to a) auto b) register c) static
given the code segment below void main() { cout<<"my no. is"; } question is how can we get the output hai aravind my no. is 99999999999 without editig the main().
What is an html tag?
Can you pass an array to a function in c++?
5. Can inline functions have a recursion?
write a program in c++ to implement stack using functions in header file stack.h
What is the use of ‘using’ declaration?
What are the advantages of using const reference arguments in a function?
What is a smart pointer?
You run a shell on unix system. How would you tell which shell are you running?
What do you mean by C++ access specifiers ?