|%||modulus operator to get remainder in integer division||5 % 2||1|
|<=||less than or equal to||5<=2||false|
|>=||greater than or equal to||5>=2||true|
|!=||not equal to||5!==2||true|
|!||logical not (negation)||!(5<2)||true|
Note : logical not(!) is unary operator which requires only one operand (true to false and vice versa).
Increment operator (++) is used to increase the value of an integer or char variable.
Decrement operator (--) is used to reduce the value of an integer or char variable.
m = 15;
m++ or ++m will produce the result m = 16.
m = 15;
m-- or --m will produce the result m = 14.
Note : That m++ and m-- are referring the post-fix increment and decrement operation, and ++m and --m are referring the prefix increment and decrement operation.
|+=||m += 10||m = m + 10||25|
|-=||m -= 10||m = m - 10||5|
|*=||m *= 10||m = m * 10||150|
|/=||m /= 10||m = m / 10||1|
|%=||m %= 10||m = m % 10||5|
Conditional operator is used to check a condition and select a value depending on the condition. Normally the selected value will be assigned to a variable which ha the following form.
variable = (condition) ? value 1 : value 2;
When this operator is execute by the computer, the value of the condition is evaluated. If it is true then value 1 is assigned to the variable, otherwise value 2 is assigned to the variable. Consider the following example.
big = ( a > b ) ? a : b
In this operation, the computer checks the value of the condition (a>b); If it is true a is assigned to big; otherwise b is big.
Conditional operator, like assignment operators, is also more concise and more efficient.
|<<||shifts the bits to left|
|>>||shifts the bits to right|
|~||bitwise inversion (one's complement)|
|&||bitwise logical and|
||||bitwise logical or|
|^||bitwise exclusive or|
We create a new YouTube channel (NightHawk) for gaming purpose like online games streaming or games review.
We need some time for make video tutorials (CodeX) so, stay with us and keep supporting and you know already we make a Collaboration with HackIsOn YouTube channel long time ago So, please Subscribe Our Channels
Protection died IPs active, this IP range is not allowed !