What do you mean by call by value and call by reference?



What do you mean by call by value and call by reference?..

Answer / hrpynux@gmail.com

While calling a function, when you pass values by copying variables, it is known as “Call By Values.” While calling a function, in programming language instead of copying the values of variables, the address of the variables is used it is known as “Call By References

Is This Answer Correct ?    0 Yes 0 No

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,


What is else syntax in c++?

0 Answers  


Copy Linked List using recursive function?

2 Answers   Persistent,


Explain how to initialize a const member data.

0 Answers  


Write a c program for binary addition of two 8 bit numbers.

0 Answers   TCS,






What is the difference between "calloc" and "malloc"?

9 Answers   ADP,


check whether a no is prime or not.

3 Answers   TCS,


What is static in c++?

0 Answers  


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

0 Answers   Yahoo,


Explain binary search.

0 Answers  


What is the cout in c++?

0 Answers  


Explain "passing by value", "passing by pointer" and "passing by reference" ?

5 Answers  


Categories