Call by reference
Pascal C/C++
wprocedure p(var x: integer);
w
wbegin
w x := 17;
wend;
w
w
w p(i);
w TRADITIONAL C:
wvoid p(x)
w      int *x;
w{ *x = 17;
w}
w
w
wp(&i);
This routine is called by:
In Pascal program in p(i), i is an integer variable.
The point of reference variables and functions is that you can pass a variable as a parameter and have the variable changed in the function.