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.