12.05.2015 Views

type - David Vernon

type - David Vernon

type - David Vernon

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Functions<br />

Altering Variables via Parameters<br />

• C does not allow reference parameters<br />

• Instead of passing parameters by reference<br />

– we pass the address of the argument<br />

– and access the parameter indirectly in the function<br />

• & (unary operator)<br />

– address of the object given by the operand<br />

• * (unary operator)<br />

– object that has the address given by the operand<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!