12.11.2013 Views

Luiz Thiago Silva DESENVOLVIMENTO DE UM ... - Ginux

Luiz Thiago Silva DESENVOLVIMENTO DE UM ... - Ginux

Luiz Thiago Silva DESENVOLVIMENTO DE UM ... - Ginux

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.

Figura 7: Módulo struct<br />

4.4 Definição de Funções<br />

Funções são os blocos de construção de C e o local onde toda a<br />

atividade do programa ocorre. Elas representam uma das características<br />

mais importantes da linguagem. (SCHILDT, 1996).<br />

Forma geral:<br />

tipo nome_da_função () {<br />

<br />

}<br />

Exemplo:<br />

float media(int a,int b){<br />

float calc;<br />

27

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

Saved successfully!

Ooh no, something went wrong!