What will be the output of the following C++ code?
#include <iostream>
int const s=9;
int main()
{
std::cout << s;
return 0;
}
#include <iostream>
int const s=9;
int main()
{
std::cout << s;
return 0;
}A. 9
B. Garbage value
C. Error
D. Segmentation fault
Answer: Option A
Related Questions on Introduction to C plus plus
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