Why do we need function?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

0 Answers  


What character terminates all character array strings a) b) . c) END

0 Answers  


How would you obtain segment and offset addresses from a far address of a memory location?

0 Answers  


What is the difference between *p++ and (*p)++ ?

0 Answers  


What is the benefit of c++?

0 Answers  






Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class.

4 Answers   Quark,


class base { public: int fun(int) {} }; class base2 { public: int fun(float) { } }; so here qustion is both function either function overloading or over riding;

4 Answers   Manhattan,


How does a copy constructor differs from an overloaded assignment operator?

0 Answers  


What is an orthogonal base class in c++?

0 Answers  


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

1 Answers   Quark,


Write a struct time where integer m, h, s are its members?

0 Answers  


What is Destructor in C++?

0 Answers  


Categories