Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
A function argument can be passed by copy, reference or pointer.
void f(T t); //t is a copy of the value passed |
When a function argument is passed by reference, the function can modify the original variable.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.