Escolar Documentos
Profissional Documentos
Cultura Documentos
Operadores
Relação operador-operando
Operador: define a operação
Operandos: argumentos da operação
int it1 = 2;
int it2 = ++it1;
int it3 = it1++;
int it = 2;
it += 3;
Forma equivalente:
int it = 2;
it = it + 3;
int it = 2;
it += 3;
it -= 1;
it *= 2;
it /= 2;
it %= 3;
Operador Descrição
| OR lógico
|| OR dinâmico
& AND lógico
&& AND dinâmico
^ XOR lógico
! NOT unário lógico
|= Atribuição de OR
&= Atribuição de AND
^= Atribuição de XOR
?: if-then-else ternário
() [] .
++ -- !
* / %
+ -
> >= < <=
== !=
&
^
|
&&
||
?:
=
int it1 = 5;
int it2 = 2 + 2 * 7 - 4 / --it1; //Resultado: 15
Situação 2:
int it1 = 5;
int it2 = (2 + 2) * (7 - 4) / --it1; //Resultado: 3
Salário Alíquota
Até R$ 1.434,00 0,0
De R$ 1.434,01 a R$ 2.150,00 7,5
De R$ 2.150,01 a R$ 2.886,00 15,0
De R$ 2.886,01 a R$ 3.582,00 22,5
Acima de 3.582,00 27,5
Com a editora:
Editora NovaTerra
E-mail Geral: contato@editoranovaterra.com.br
E-mail Comercial: comercial@editoranovaterra.com.br
Web Site: http://www.editoranovaterra.com.br