Studied by 0 people

0.0(0)

Get a hint

Hint

1

Arithmetic Assignment Operators

These operators combine arithmetic operations with assignment. Examples include +=, -=, *=, and /=.

New cards

2

Unary Minus Operator

This operator is used to negate the value of an expression. For example, -x will give the negation of x.

New cards

3

Increment and Decrement Operators

These operators are used to increase or decrease the value of a variable by 1. Pre-increment (++x), Post-increment (x++), Pre-decrement (--x), and Post-decrement (x--) are the four types of increment and decrement operators.

New cards

4

Relational Operators

These operators are used to compare two values and return a boolean result (true or false). Equal to (==), Not equal to (!=), Greater than (>), Less than (<), Greater than or equal to (>=), and Less than or equal to (<=) are the six types of relational operators.

New cards

5

Cast Operator

This operator is used to explicitly convert a value from one data type to another. It is denoted by placing the desired data type in parentheses before the value to be converted.

New cards