What is a Default constructor?
Answer / munendra kumar
A constructor that has no arguments.
If you don't code one, the compiler provides one if there are no other constructors. If you are going to instantiate an array of objects of the class, the class must have a default constructor.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the function of I/O library in C++ ?
What are templates? where we should use it?
what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
How do you generate a random number in c++?
What do you mean by abstraction. Explain your answer?
What is lambda expression c++?
Is c++ vector dynamic?
Difference between inline functions and macros?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
How can you quickly find the number of elements stored in a a) static array b) dynamic array ?