Question: Passing arguments to proc

Hello, how to write function such inc or succ in Pascal. This code inc := proc(x) x := x+1; return x; end proc; A := 10; inc(A); gives an error Error, (in inc) illegal use of a formal parameter
Please Wait...