PHP <-> FreeBASIC | Bitwise or
PHP Used keywords: |
|
Description
par1 | par2
Input
- par1 - Any integer
- par2 - Any integer
Output
- Result - Integers
Examples
PHP
Bitwise or the possible of use:$x = 1 | 2; // x = 3
$y = 0xa | 5; // y = F
$z = 0xf0 | ($x | $y); // z = FF
PHP
Even one example in what situations we can use the operation bitwise or:$i | $j
0xff | $k
64 | ($i | $k)
.
FreeBASIC Used keywords: or
or
Description
par1 or par2
Input
- par1 - Any integer
- par2 - Any integer
Output
- Result - Integers
Examples
FreeBASIC
Bitwise or the possible of use:x = 1 or 2 ' x = 3
y = &Ha or 5 ' y = F
z = &Hf0 or (x or y) ' z = FF
FreeBASIC
Even one example in what situations we can use the operation bitwise or:i or j
&Hff or k
64 or (i or k)
You can find it in the following collections: bitwise operators
Bitwise or in another programming language:
Differences to: