What is a constructor 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

How compile and run c++ program in turbo c++?

0 Answers  


what is the order of initialization for data?

10 Answers   Amazon, TCS, Wipro,


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

0 Answers  


What is a rooted hierarchy?

0 Answers  


What is ios in c++?

0 Answers  






State two differences between C and C++.

0 Answers   Hexaware,


What is meant by const_cast?

0 Answers  


Is c++ vector dynamic?

0 Answers  


Can you explain the term "resource acquisition is initialization?"

1 Answers   Amazon,


Describe Trees using C++ with an example.

0 Answers  


What are dynamic type checking?

0 Answers  


What is fixed in c++?

0 Answers  


Categories