Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can a '::' operator be used as unary operator?

Answer Posted / subham chaudhary

The scope operator can be used to refer to members of the global namespace. Because the global namespace doesn’t have a name, the notation :: member-name refers to a member of the global namespace. This can be useful for referring to members of global namespace whose names have been hidden by names declared in nested local scope. Unless we specify to the compiler in which namespace to search for a declaration, the compiler simple searches the current scope, and any scopes in which the current scope is nested, to find the declaration for the name.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1210


Define namespace in c++?

1031


What is implicit conversion/coercion in c++?

1425


Write about a nested class and mention its use?

1088


Can you pass a vector to a function?

968


How are pointers type-cast?

1098


What is struct c++?

987


What is the real purpose of class – to export data?

1095


What is the difference between function overloading and operator overloading?

1093


Who made c++?

1062


What is expression parser in c++

2481


Which of the following is evaluated first: a) && b) || c) !

2349


What are the stages in the development cycle?

1040


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

1013


How do you write a function that can reverse a linked-list?

1093