Chapter 1 - Getting Started
Chapter 1 - Getting Started
Getting Started
Outline
Assignment operator =
Arithmetic operators like +,-,*,/,%
Comparison operators like ==, !=,>,>=,<,<=
Conditional operators like &&, ||
Ternary operator ?:
Null Coalescing operator ??
• If Statement
• If else statement
• Difference between && and &
• Difference between || and |
The difference is that the double && checks the next condition if the
first condition is true.
Where as the single & checks all conditions even if the first condition
is false.