Is it possible for a member function to delete the pointer, named this?
What are friend functions?
What is the difference between const and constexpr?
How can virtual functions in c++ be implemented?
How do you print a string on the printer?
Distinguish between new and malloc and delete and free().
Explain all the C++ concepts using examples.
how to swap two numbers with out using temp variable
12 Answers Global eProcure, TCS,
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 is scupper?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Can a class be static in c++?
How a new element can be added or pushed in a stack?