bitwise_not
Syntax | bitwise_not(int1) | Package | bitwise |
Alias |
| Pkg Usage | b_not(int1) |
Description
Takes one number and inverts all bits of it.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
int1 | Integer | Yes | Number to be inverted. |
Return Type
Integer
The result of the bitwise operation (complement).
Example
use "bitwise";
int result = b_not(int1);
//------------or-----
//no package needed
int result = bitwise_not(int1);