Baixe o app para aproveitar ainda mais
Prévia do material em texto
* Linguagem C Prof. Antonio Themoteo Varela E-mail: themoteo@ifce.edu.br * * * * * Decodificador de Instruções * * * * * * * * * * * * * * * * * * * * * * * * * * * & e | são bit a bit && e || são lógicos * & - And bit a bit | - OR bit a bit >> deslocamento para direita << deslocamento para esquerda ^ OR exclusivo bit a bit ~ NOT bit a bit * * * * * * * * * * * * * * FUNÇÕES Y=f(X) Void main (void ) Void = “VAZIO” , x=nada e Y = nada. int y(int x) Float z (int x,int y) { z = x/y; return z; } result = z(10,2); * * * * EXEMPLOS Float z (int x,int y) { z = x/y; x=y; return z; } Void main (void) { int x,y; float result; x=10; y=2; result = z(x,y); } * x=?, y=? x=10, y=2 * Float z (int *x,int *y) { z = x/y; x=y; return z; } Void main (void) { int x,y; float result; x=10; y=2; result = z(x,y); * * * * Complemeto de 2 Inverter os bits Somar 1 ou * * * * * * * * * * * * *
Compartilhar