09.10.2014 Views

download pascal tutorial (pdf - Tutorials Point

download pascal tutorial (pdf - Tutorials Point

download pascal tutorial (pdf - Tutorials Point

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

variable named m. The variable m is passed by reference (we will discuss passing<br />

arguments by reference a little later):<br />

procedure findMin(x, y, z: integer; var m: integer);<br />

(* Finds the minimum of the 3 values *)<br />

begin<br />

if x < y then<br />

m := x<br />

else<br />

m := y;<br />

if z

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!