Vidyalelo
C++ Programming · Q27

Constructors and Destructors in C++

Programming · C++ Programming · question 27

Q27

What is the primary purpose of the explicit keyword in a C++ constructor?

A.
To mark the constructor as static
B.
To specify the return type of the constructor
C.
To allow implicit type conversions
D.
To prevent implicit type conversions
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board