Vidyalelo
C++ Programming · Q80

Introduction to C++

Programming · C++ Programming · question 80

Q80

What will be the output of the following C++ code? #include using namespace std; int x = 1; int main() int x = 2; int x = 3; cout << ::x << endl; return 0;

A.
1
Answer
B.
2
C.
3
D.
123

Answer: Option A

Solution

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