Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* used of scope resoltuion operator(::)
- 1.access globle variable*/
- #include<iostream>
- using namespace std;
- int x=20;//gloable variable
- int main()
- {
- int x=10;//local variable
- cout<<"value of x is "<<x;
- cout<<"value of x is (globle) "<<::x;
- }
Advertisement
Add Comment
Please, Sign In to add comment