Q5
What is the purpose of the 'explicit' keyword before a constructor in C++?
A.
To mark the constructor as static
B.
To specify the return type of the constructor
C.
To allow implicit conversions during object initialization
D.
To prevent implicit conversions during object initialization
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board