Home »
MCQs »
C++ MCQs
Which of the following is responsible to create a default constructor in the class when the programmer does not create a constructor inside the class?
202. Which of the following is responsible to create a default constructor in the class when the programmer does not create a constructor inside the class?
- Compiler
- Linker
- Loader
- Pre-processor
Answer: C) Loader
Explanation:
In C++, the Compiler is responsible to create a default constructor in the class when the programmer does not create a constructor inside the class.