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

Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

1123


What are protected members in c++?

1182


What are the stages in the development cycle?

1114


What is the standard template library (stl)?

1928


What is the full form of india?

1215


What is data type in c++?

1065


What is a stack? How it can be implemented?

1231


How do I run c++?

1126


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

1174


What is the best c++ book for beginners?

1213


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

1101


Difference between pointer to constant vs. Pointer constant

1215


What is low level language in simple words?

1091


How important is c++?

1036


What are structs in c++?

1087