Escolar Documentos
Profissional Documentos
Cultura Documentos
4
5
6
7
8
9
10
11
12
13
14
15
16
& e | são bit a bit && e || são lógicos
17
& - And bit a bit
| - OR bit a bit
>> deslocamento para direita
<< deslocamento para esquerda
^ OR exclusivo bit a bit
~ NOT bit a bit
18
19
20
21
22
23
24
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);
25
26
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; x=10, y=2
x=?, y=?
result = z(x,y);
}
27
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);
28
29
Complemeto de 2
o Inverter os bits
o Somar 1
o ou
o
30
31
32
33
34
35
36