Lecture - 1 (Intro +data Type + Operator) 2nd
Lecture - 1 (Intro +data Type + Operator) 2nd
■ Introduction
■ Data type
■ Variable
■ Operator
Arithmetic Operator:
Increment/Decrement Operator:
Output: 7
Output : 3
Data Type, Variable, Operator
Relational Operator:
Explain:
Data Type, Variable, Operator
Logical Operator:
Logical Operator:
bitwise Operator:
bitwise Operator: Left Shift Operator (<<) : Takes two numbers, left shifts the bits of the first operand, the
second operand decides the number of places to shift. In other words, left shifting an integer ‘x’ with an integer ‘y’
(x<<y) is equivalent to multiplying x with 2^y (2 raise to power y). When Data is Shifted Left , trailing digits are filled
with zero.
bitwise Operator: Right Shift Operator (>>) : Takes two numbers, right shifts the bits of the first operand, the second
operand decides the number of places to shift. In other words, right shifting (x>>y) is equivalent to dividing x with 2^y. When Data
is Shifted Left , digits from right are filled with zero.
bitwise Operator:
Output: 32
Thank You!
Any questions?