What is function declaration in c++ with example?


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

Post New Answer

More C++ General Interview Questions

class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.

2 Answers   Quark,


What is jump statement in C++?

0 Answers   Ericsson,


Can create new c++ operators?

0 Answers  


Ask to write virtual base class code?

0 Answers   Satyam,


What are the benefits of oop in c++?

0 Answers  






How many namespaces are there in c++?

0 Answers  


Explain selection sorting?

0 Answers  


How do you generate a random number in c++?

0 Answers  


What are the three forms of cin.get() and what are their differences?

0 Answers  


Describe exception handling concept with an example?

0 Answers  


class professor {}; class teacher : public virtual professor {}; class researcher : public virtual professor {}; class myprofessor : public teacher, public researcher {}; Referring to the sample code above, if an object of class "myprofessor" were created, how many instances of professor will it contain? a) 0 b) 1 c) 2 d) 3 e) 4

4 Answers   Quark,


What do you mean by late binding?

0 Answers  


Categories