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.

Arrays, Pointers, and Strings<br />

Multi-Dimensional Arrays<br />

• Function Parameters<br />

int main()<br />

{ float table[4][5];<br />

int f(float t[][5]);<br />

f(table);<br />

return 0;<br />

}<br />

int f(float t[][5]) // may omit the first dimension<br />

{ // but all other dimensions must<br />

} // be declared since it must be<br />

// possible to compute the<br />

// address of each element. How?<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!