Explain pass by value and pass by reference.


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

Post New Answer

More C++ General Interview Questions

In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.

5 Answers   GE,


How do you show the declaration of a virtual constructor?

0 Answers  


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

0 Answers  


What language does google use?

0 Answers  


What is meant by the term name mangling in c++?

0 Answers  


List out some of the OODBMS available?

1 Answers  


What is a storage class in C++

1 Answers  


What are mutator methods in c++?

0 Answers  


What is a try block?

0 Answers  


Why cout is used in c++?

0 Answers  


What are signs of manipulation?

0 Answers  


Why was c++ made?

0 Answers  


Categories