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.

The void Keyword<br />

• Some functions do not return a value<br />

• Similar to procedures and subroutines<br />

• The functions are given the <strong>type</strong> void<br />

void max(int x, int y, int z)<br />

{ if (y > x) x = y;<br />

if (z > x) x = z;<br />

cout

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

Saved successfully!

Ooh no, something went wrong!