18.08.2013 Views

Fondamenti di Informatica - Linguaggio C Le funzioni - Robotica

Fondamenti di Informatica - Linguaggio C Le funzioni - Robotica

Fondamenti di Informatica - Linguaggio C Le funzioni - Robotica

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Introduzione Dichiarazione e definizione I parametri Funzione main Car. avanzate<br />

Dichiarazione<br />

Esempio <strong>di</strong> <strong>di</strong>chiarazione<br />

void funzione1(int arg1, double arg2);<br />

<strong>di</strong>chiara la funzione funzione1 che non restituisce alcun<br />

valore e richiede due argomenti: un intero ed un reale in<br />

doppia precisione<br />

altro esempio:<br />

char funzione2(void);<br />

<strong>di</strong>chiara la funzione funzione2 che restituisce un carattere<br />

e non richiede alcun argomento<br />

Tullio Facchinetti <strong>Fondamenti</strong> <strong>di</strong> <strong>Informatica</strong> - <strong>Linguaggio</strong> C <strong>Le</strong> f

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

Saved successfully!

Ooh no, something went wrong!