Call by reference
Pascal C/C++
w ANSI C/C++:
wvoid p( int *x)
w{
w *x = 17;
w}
w
w
wp(&i);
wprocedure p(var x: integer);
w
wbegin
w x := 17;
wend;
w
w
w p(i);
This routine is called by:
In all programs in p(i) and p(&i), i is an integer variable.