Vidyalelo
C++ Programming · Q10

C++ miscellaneous

Programming · C++ Programming · question 10

Q10

Which of the following is a valid way to initialize a constant variable in C++?

A.
Using the 'volatile' keyword
B.
Using the 'static' keyword
C.
Using the 'const' keyword
Answer
D.
Using the 'constexpr' keyword

Answer: Option C

Solution

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