Vidyalelo
C++ Programming · Q157

Functions and Procedures in C++

Programming · C++ Programming · question 157

Q157

What will be the output of the following C++ code? #include using namespace std; namespace space int x = 10; namespace space int y = 15; int main(int argc, char * argv[]) space::x = space::y =5; cout << space::x << space::y;

A.
1015
B.
1510
C.
55
Answer
D.
compile time error

Answer: Option C

Solution

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