Examveda
Examveda

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;

C. constant PI = 3.14159;

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Introduction to C plus plus