26.07.2013 Views

Passagem de Parâmetros e Estruturas

Passagem de Parâmetros e Estruturas

Passagem de Parâmetros e Estruturas

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.

<strong>Estruturas</strong> como parâmetros <strong>de</strong> funções<br />

void main() {<br />

ponto u, v;<br />

le_coor<strong>de</strong>nada(&u);<br />

le_coor<strong>de</strong>nada(&v);<br />

printf("\n %f", distancia_pontos(u,v));<br />

getch();<br />

}<br />

en<strong>de</strong>reço variável conteúdo<br />

F000 u | x 1.5<br />

F010 u | y 2.0<br />

F020 v | x 30.0<br />

F030 v | y 25.5<br />

F040<br />

F050<br />

F060<br />

F070<br />

30

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

Saved successfully!

Ooh no, something went wrong!