FreeBASIC <-> Java | Bitwise left shift

FreeBASIC

shl

Description

par1 shl par2
Used keywords: shl

Input


Output

Examples

FreeBASIC

Bitwise left shift the possible of use:
x = 16 shl 2      ' x = 64
y = &Hf shl 5     ' y = 480
z = (x shl y) shl 2' z = 256

FreeBASIC

Even one example in what situations we can use the operation bitwise left shift:
i shl 4
&H12AB shl j
128 shl (j shl(3 + i))
.
Java

<<

Description

par1 << par2
Used keywords: <<

Input


Output

Examples

Java

Bitwise left shift the possible of use:
x = 16 << 2;      // x = 64
y = 0xf << 5;     // y = 480
z = (x << y) << 2;// z = 256

Java

Even one example in what situations we can use the operation bitwise left shift:
i << 4
0x12AB << j
128 << (j <<(3 + i))

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