#include <iostream>
using namespace std;
int d = 10;
int main()
{
int d = 20;
{
int d = 30;
cout << d << endl << ::d; // what does it mean?
}
return 0;
}
output is:
30
10
I don't understand why "::d" gives 10? Can someone explain it to me please?
\file.txtis not the same as\subdirectory\file.txt.