Vidyalelo
C++ Programming · Q72

Functions and Procedures in C++

Programming · C++ Programming · question 72

Q72

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

A.
10
Answer
B.
Error
C.
Some garbage value
D.
Nothing but program runs perfectly

Answer: Option A

Solution

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