![]() Bitwise NOTing any number x yields -(x+1) Bits that are 0 become 1 and bits that are 1 become 0. Returns a 1 in each bit position for which the corresponding bits of either but not both operands are 1s. Returns a 1 in each bit position for which the corresponding bits of either or both operands are 1s. ![]() If either bit of one of the operands is 0, the corresponding bit of the result is also 0. Returns a 1 in each bit position for which the corresponding bits of both operands are 1s. Operatorīit operators work with 32 bit numbers. See Type casting - Unary statements to learn the casting behavior if either operand is not a number. Unary operators indicate if a value is positive or negative. The pre increment version adds one to the variable and returns the new value while the post increment adds one and then returns the initial value of the variable. The increment/decrement by one operators have pre and post versions that differ in what they return. Returns the remainder of a number divided by another number. See Type casting - Arithmetic statements to learn the casting behavior if either operand is not a number. Arithmetic operatorsĪrithmetic operators are used to perform arithmetic on numbers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |