Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Statements e Blocchi<br />
Uno statement controlla la sequenza di esecuzione,valuta<br />
una espressione o non fa nulla (null statement).TUTTI<br />
gli statement f<strong>in</strong>iscono con il “ ; ”.<br />
x=a+b; //assegna a x la somma di a e b<br />
Un blocco (compound of statements) e’ un <strong>in</strong>sieme di<br />
statements eseguiti <strong>in</strong> cascata che funzionano come un<br />
unico statement e sono delimitati da { }<br />
{<br />
temp=a;<br />
a=b; //swappa I valori delle varialbili a e b<br />
b=temp;<br />
} //non c’e la semicolonna!