Call by value
Pascal
C/C++
NOTE:
In either dialect, the return a statement is optional
at the end of the code. A return statement or statements
may also appear in the middle of the code.
ANSI C/C++:
void p(int x)
{
int temp;
….
return;
}
w
procedure p(x : integer);
w
w
var
w
temp: integer;
w
begin
w
….
w
end;