Q106
What will be the output of the following C++ code? #include using namespace std; namespace first int var = 5; namespace second double var = 3.1416; int main () int a; a = first::var + second::var; cout << a; return 0;
A.
8.31416
B.
8
AnswerC.
9
D.
compile time error
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board