Pascal <-> C | Bitwise and

Pascal

and

Description

par1 and par2
Used keywords: and

Input


Output

Examples

Pascal

Bitwise and the possible of use:
x := $f and $ff;      { x = 0xf}
y := 5 and 3;           { y = 1}
z := (x and 5) and y;     { z = 1}

Pascal

Even one example in what situations we can use the operation bitwise and:
i and j
$abcd and k
2 and (i and 4)
.
C

&

Description

par1 & par2
Used keywords: &

Input


Output

Examples

C

Bitwise and the possible of use:
x = 0xf & 0xff;      // x = 0xf
y = 5 & 3;           // y = 1
z = (x & 5) & y;     // z = 1

C

Even one example in what situations we can use the operation bitwise and:
i & j
0xabcd & k
2 & (i & 4)

You can find it in the following collections: bitwise operators
Languages: en hu cz sk