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

Can we define function inside main in c++?

0 Answers  


Can a constructor return a value?

1 Answers  


Write a function that swaps the values of two integers, using int* as the argument type?

0 Answers  


What do you mean by a template?

0 Answers  


What is the array and initializing arrays in c++?

0 Answers  






Can a program run without main?

0 Answers  


What is the purpose of template?

0 Answers  


What is a pure virtual function? Why is it represented as = 0...how is the internal implementation for the same

3 Answers   CTS,


What are structures and unions?

0 Answers  


what do you mean by volatile variable?

0 Answers  


Explain the difference between static and dynamic binding of functions?

0 Answers  


What is the best ide for c++?

0 Answers  


Categories