Call by reference:
Memory allocation process
Rectangle: Click to edit Master text styles
Second level
Third level
Fourth level
Fifth level
Call by value in this context
means when the execution
enters the body of swap, its
formal parameters are
initialised as if two
assignments are executed:
x = &i;
y = &j;