bitwise_xor

bitwise_xor

 

Syntax

bitwise_xor(int1, int2)

Package

bitwise

Alias

 

Pkg Usage

b_xor(int1, int2)

Description

Takes two numbers as operands and does XOR on every bit of two numbers. The result of XOR is 1 if the two bits are different.

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

int1

Integer

Yes

First operand.

int2

Integer

Yes

Second operand.

Return Type

Integer

The result of the bitwise operation.

Example

use "bitwise"; int result = b_xor(int1, int2); //------------or----- //no package needed int result = bitwise_xor(int1, int2);

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.