// TestScopeResolutionOperator.cpp #include using namespace std; // Global variable int x = 5; int main() { // A local variable having the Same name as a global variable, // which hides the global variable float x = 55.5f; // Local cout << x << endl; // Use unary scope resolution operator to retrieve the global variable cout << ::x << endl; return 0; }