6. Introduction to c++: Operators, Precedence of operators :: Videos
Description:
What are we going to learn today?
- Assignment operator(=):
- Assign a value to variable.
- Examples:
- Arithmetic operators(+,-,*,/,%):
- Compound assignment(+=,-=,*=……..):
- Increment and decrement(++, --):
- Relational and equality(==, !=, >, <. >=, <=):
-
== Equal to? (not same as ‘=‘)
-
!= Not equal to?
-
> greater than?
-
< smaller than?
-
>= greater than or equal to?
-
<= smaller than or equal to?
- Example:
- (23==53) is returned as false
- Logical(!, &&, ||):
- Conditional(?:):
- Evaluates an expression and returns true or false.
- Example:
- Comma operator(,):
- Bitwise operator(&, |, ^, ~, <<, >>):
- sizeof():
- Precedence:
Head over to the resources section to get the powerpoint that is shown in the video.
|
|