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 |
How do you clear a map in c++?
In C++ cout is: a) object b) class c) something else
11 Answers Infosys, Lehman Brothers,
What are the main differences between C and C++?
What is polymorphism and its type in c++?
Is c++ the hardest programming language?
What is vector pair in c++?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct B { B(){ cout << \"B\"; } }; struct C { C(){ cout << \"C\"; } }; struct D { D(){ cout << \"D\"; } }; struct E : D { E(){ cout << \"E\"; } }; struct F : A, B { C c; D d; E e; F() : B(), A(),d(),c(),e() { cout << \"F\"; } };
founder of c++
7 Answers Microtek, TCS, TeleCommand,
string somestring ; Which of the following choices will convert a standard C++ string object "somestring" to a C string? a) Copy.somestring () ; b) somestring.c_str () c) &somestring [1] d) std::cstring (somestring) e) (char *) somestring
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
List out some of the object-oriented methodologies?