Visual Basic .NET <-> FreeBASIC | Bitwise left shift

Visual Basic .NET

<<

Description

par1 << par2
Used keywords: <<

Input


Output

Examples

Visual Basic .NET

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

Visual Basic .NET

Even one example in what situations we can use the operation bitwise left shift:
i << 4
&H12AB << j
128 << (j <<(3 + i))
.
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))

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