Explain the scope resolution operator?
Answers were Sorted based on User's Feedback
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 |
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 |
Differentiate between an inspector and a mutator ?
Why seem interrupt handlers as member functions to be impossible?
What is null pointer and void pointer and what is their use?
Can we delete this pointer in c++?
Describe the advantage of an external iterator.
class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected
Specify different types of decision control statements?
Is there finally in c++?
What is a custom exception?
How the delete operator differs from the delete[]operator?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What are the various operations performed on stack?