Home / MCQ Bank / Computer
Computer Introduction To C Plus Plus Difficulty: Medium

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

Select the correct option to test your answer:

More Computer Questions

A subdivision of main storage created by operational software is referred to as a: A distributed database is which of the following? The size of a lock is called: Which of the following is not a reserved character? Which of the following searching algorithm is fastest when the input array is not sorted but has uniformly distributed values?