Definition: In C and C++, parameters to a function are passed by value. This makes a copy of the variable and can be quite slow and inefficient if the variable is large like an array.
C++ also allows Pass by Reference where the address of the variable is passed in. As C lacks references, it is necessary to pass in a pointer to a variable if the function is to change the variable.

