Conceitos básicos da linguagem C - Unesp
Conceitos básicos da linguagem C - Unesp
Conceitos básicos da linguagem C - Unesp
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Palavras)reserva<strong>da</strong>s)<strong>da</strong>)<strong>linguagem</strong>)C)<br />
As)seguintes)palavras)não)podem)ser)u8liza<strong>da</strong>s)para)denominar)en8<strong>da</strong>des)<br />
(constantes,)variáveis,)estruturas,)funções)etc.))cria<strong>da</strong>s)pelo)programador:)<br />
• Armazenamento:)auto, extern, register, static.)<br />
• Tipagem:)char, const, double, enum, float, int, long,<br />
short, signed, struct, typedef, union, unsigned, void,<br />
volatile.)<br />
• Controle)de)execução:)break, continue, goto, return.)<br />
• Comandos)de)seleção:)case, default, else, if, switch.)<br />
• Comandos)de)iteração:)do, for, while.)<br />
• Função:)sizeof().)<br />
PC3I)©)MAP’2014)<br />
<strong>Conceitos</strong>)básicos)<strong>da</strong>)<strong>linguagem</strong>)C)<br />
67)<br />
Atribuindo)valores)à)variáveis)<br />
A)atribuição)é)um)comando)u8lizado)para)modificar)o)valor)de)uma)<br />
variável.)<br />
Atenção<br />
• )o)símbolo)de)atribuição)=)não)significa)igual<strong>da</strong>de.)<br />
• )a)atribuição)sempre)atua)<strong>da</strong>)direita)para)a)esquer<strong>da</strong>)(←).)<br />
PC3I)©)MAP’2014)<br />
<strong>Conceitos</strong>)básicos)<strong>da</strong>)<strong>linguagem</strong>)C)<br />
68)