What is scope in c++ with example?
class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.
What are the rules for naming an identifier?
What are the c++ access specifiers?
Why can templates only be implemented in the header file?
What is the difference between equal to (==) and assignment operator (=)?
Describe the advantage of an external iterator.
How many storage classes are available in C++?
Explain binary search.
What is flush () in c++?
Explain unexpected() function?
Is it possible to use a new for the reallocation of pointers ?
How a new operator differs from the operator new?