Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Operators

bool result;

result = (3 == 3); // result equals true
result = (3 > 3); // result equals false

int a = 3;
int b;

b = ++a; // b and a both equal 4
result = ((4 > 3) && (4 < 5)); // result equals true
result = !(1 > 2); // result equals true
a = 10 % 3; // a equals 1 (remainder after dividing 10 by 3)
b = (a = 5); // assign 5 to a, and then assign that value to b
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content