When to use “const” reference arguments in a function?


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

Post New Answer

More C++ General Interview Questions

Is it possible to get the source code back from binary file?

1 Answers  


How will you call C functions from C ++ and vice-versa?

0 Answers   Agilent, Tavant Technologies, Thomson Reuters, Verifone,


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 are the advantages of inheritance in c++?

0 Answers  


How should a contructor handle a failure?

0 Answers  






What is the use of seekg in c++?

0 Answers  


What are disadvantages of pointers?

0 Answers  


What is the role of static keyword for a class member variable?

0 Answers  


What are stacks? Give an example where they are useful.

0 Answers  


What is the difference between cin.read() and cin.getline()?

0 Answers  


What is flush c++?

0 Answers  


In which memory a class gets stored(in heap /in stack)? And why??

2 Answers  


Categories