Can I have a reference as a data member of a class? If yes, then how do I initialise it?


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

Post New Answer

More C++ General Interview Questions

What is the outcome of cout< a) 16 b) 17 c) 16.5

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,


How can an improvement in the quality of software be done by try/catch/throw?

0 Answers  


Describe functional overloading?

6 Answers   HP,


write a program in c++ to implement stack using functions in header file stack.h

3 Answers   Google, Subex,






When are exception objects created?

0 Answers  


Is turbo c++ free?

0 Answers  


How do you allocate and deallocate memory in C++?

1 Answers  


Explain what are the sizes and ranges of the basic c++ data types?

0 Answers  


Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.

0 Answers   Nucleus, TCS,


What is binary search in c++?

0 Answers  


What are the five basic elements of a c++ program?

0 Answers  


Categories