Vidyalelo
C++ Programming · Q42

Introduction to C++

Programming · C++ Programming · question 42

Q42

What is the correct way to define a constant named 'PI' with a value of 3.14159 in C++?

A.
const PI = 3.14159;
B.
const double PI = 3.14159;
Answer
C.
constant PI = 3.14159;
D.
None of the above

Answer: Option B

Solution

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