Call by value and call by reference in C++


There are two ways to pass value or data to function in C language: call by value and call by reference. Original value is not modified in call by value but it is modified in call by reference.

Let’s understand call by value and call by reference in C++ language one by one.