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
A. const PI = 3.14159;
B. const double PI = 3.14159;
C. constant PI = 3.14159;
D. None of the above
Answer: Option B
What does the 'cin' object in C++ represent?
A. File output stream
B. File input stream
C. Standard output stream
D. Standard input stream
Join The Discussion