12.05.2015 Views

type - David Vernon

type - David Vernon

type - David Vernon

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.

Functions<br />

• Key points<br />

– fun(xx, yy, ii, jj) is a function call<br />

– xx, yy, ii, jj are called arguments<br />

– the parameters x, y, i, j are used as local<br />

variables within the function<br />

– the initial values of x, y, i, j correspond to the<br />

passed arguments xx, yy, ii, jj<br />

– the return expression; statement assigns the<br />

value of expression to the function and then<br />

returns to the calling function (main, in this case)<br />

Copyright © 2007 <strong>David</strong> <strong>Vernon</strong> (www.vernon.eu)

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

Saved successfully!

Ooh no, something went wrong!