Arithmetic Operators (Contd…) += Addition and assignment -= Subtraction and assignment *= Multiplication and assignment /= Division and assignment %= Modulus and assignment
Relational Operators == Equal to != Not equal to < Less than > Greater than <= Less than or equal to >= Greater than or equal to
Logical Operators
&& Logical AND
|| Logical OR
! Logical unary NOT
Conditional Operator
Syntax
expression1 ? expression2 : expression3;
expression1
Boolean condition that returns a True or False value
0 comments
Post a comment