Vidyalelo
C++ Programming · Q166

Functions and Procedures in C++

Programming · C++ Programming · question 166

Q166

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

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

Answer: Option C

Solution

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