Explain the scope resolution operator?

Answers were Sorted based on User's Feedback



Explain the scope resolution operator?..

Answer / 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

Explain the scope resolution operator?..

Answer / neelam saini

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.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Is facebook written in c++?

0 Answers  


What is the difference between prefix and postfix versions of operator++()?

0 Answers  


What is class invariant in c++?

0 Answers  


Where the memory to the static variables is allocated?

0 Answers  


what is Loop function? What are different types of Loops?

0 Answers  






What is the C-style character string?

0 Answers  


What is an incomplete type?

1 Answers  


What is the outcome of cout< a) 16 b) 17 c) 16.5

0 Answers  


Explain the ISA and HASA class relationships. How would you implement each in a class design?

3 Answers  


What is a mutex and a critical section.Whats difference between them?How do each of them work?

4 Answers   CTS,


Is c++ a software?

0 Answers  


How do I tokenize a string in c++?

0 Answers  


Categories