#include "stdafx.h" #include <iostream> using namespace std; //define Global variable int i = 10; int _tmain(int argc, _TCHAR* argv[]) { //define variable inside function main() int i = 5; cout << "i : " << i << endl; cout << "::i : " << ::i << endl; system("PAUSE"); return 0; }
![Using of Scope Resolution Operator (::) Using of Scope Resolution Operator (::)](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM0wSD8X6Zt8UhnJ5SAD9GKh2wy43oZisWEsoJlY2SfzRnf4huhWOO6O3PmARPa_5IfHFmtdvoOaV4BTFx1czCX7nzUzdDa0UbabvZDmkbfG8yT7glkTyaOq4inDebYuhRfwxX1P1OXvg/s400/Scope+Resolution+Operator.png)
No comments:
Post a Comment