This is my code
#include <iostream>
using namespace std;
int x = 5;
int main()
{
int x = 1;
cout << "The variable x: " << x << endl;
}
I get as output 1, but I would like to have 5, as in accessing the global x variable.
Is this possible?