Vidyalelo
C++ Programming · Q58

Functions and Procedures in C++

Programming · C++ Programming · question 58

Q58

What will be the output of the following C++ code? #include #include using namespace std; namespace A int var = 10; namespace B int cout = 5; int main() using namespace B; cout<<A::var;

A.
10
B.
5
C.
Error
Answer
D.
105

Answer: Option C

Solution

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