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

What is the difference between #define debug 0 and #undef debug?

1197


Does c++ support exception handling?

1077


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1073


Show the declaration for a static member variable.

1013


What is a friend function in c++?

1662


Explain how the virtual base class is different from the conventional base classes of the opps.

1179


Is c++ map a hash table?

1041


What is the difference between the compiler and the preprocessor?

1133


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

1055


How do you decide which integer type to use?

1019


What is private public protected in c++?

1061


What is wrapper class in c++?

1134


What would happen on forgetting [], while deallocating an array through new?

1099


Why do we use classes in c++?

1076


Explain Memory Allocation in C/C++ ?

1085