Visual C++ .NET <-> Visual Basic .NET | Bitwise and
Visual C++ .NET Used keywords: &
&
Description
par1 & par2
Input
- par1 - Any integer
- par2 - Any integer
Output
- Result - Integers
Examples
Visual C++ .NET
Bitwise and the possible of use:x = 0xf & 0xff; // x = 0xf
y = 5 & 3; // y = 1
z = (x & 5) & y; // z = 1
Visual C++ .NET
Even one example in what situations we can use the operation bitwise and:i & j
0xabcd & k
2 & (i & 4)
.
Visual Basic .NET Used keywords: and
and
Description
par1 and par2
Input
- par1 - Any integer
- par2 - Any integer
Output
- Result - Integers
Examples
Visual Basic .NET
Bitwise and the possible of use:x = &Hf and &Hff ' x = 0xf
y = 5 and 3 ' y = 1
z = (x and 5) and y ' z = 1
Visual Basic .NET
Even one example in what situations we can use the operation bitwise and:i and j
&Habcd and k
2 and (i and 4)
You can find it in the following collections: bitwise operators
Bitwise and in another programming language:
Differences to: