Explain the scope resolution operator?

Answer Posted / nikhil upadhyay

It permits a program to reference an identifier in the global scope that has been hidden by another identifier with the same name in the local scope.
The answer can get complicated. However, it should start with "::". If the programmer is well into the design or use of classes that employ inheritance you might hear a lot about overriding member function overrides to explicitly call a function higher in the hierarchy. That's good to know, but ask specifically about global scope resolution. You're looking for a description of C++'s ability to override the particular C behavior where identifiers in the global scope are always hidden by like identifiers in a local scope.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the operators in c++?

763


What is dynamic and static typing?

779


Why cout is used in c++?

662


What is the extension of c++?

605


Why is c++ still popular?

684






Explain the different access specifiers for the class member in c++.

636


What is different in C++, compare with unix?

700


Who was the creator of c++?

668


How do you print a string on the printer?

667


What are the benefits of oop in c++?

694


Should a constructor be public or private?

637


Specify some guidelines that should be followed while overloading operators?

718


Why is "using namespace std;" considered bad practice?

746


Can you sort a set c++?

624


What is the full form nasa?

673