Swift Operators
Operators are special symbols that perform operations on variables and values.
Types of Operators
- Arithmetic operators
- Assignment Operators
- Comparison Operators
- Logical Operators
- Bitwise Operators
- Other Operators
1. Swift Arithmetic Operators
Arithmetic operators are used to perform mathematical operations like addition, subtraction, multiplication, etc.

2. Swift Assignment Operators
Here, =
is an assignment operator that assigns 5
to x
. Here's a list of different assignment operators available in Swift.

3. Swift Comparison Operators
Comparison operators compare two values/variables and return a boolean result: true
or false
.

4. Swift Logical Operators
Logical operators are used to check whether an expression is true
or false
. They are used in decision-making.

5. Swift Bitwise Operators
In Swift, bitwise operators are used to perform operations on individual bits.

6. Other Swift Operators
Here’s a list of other operators available in Swift. We’ll learn more about these operators in later tutorials
