First Note
First Note
like I am talking
3. (literals/values)
The thing we used after = are literals or the values as we used two
different things like “1+1” and 1+1 actually there are 4 main different
types of literals.
A. String literals the thing we used with quotation “” you might
be wondering if single quote works or not, but it works I don’t
know the difference between them but both works as same.
Don’t be confused with the symbols these symbols are
classified as Punctuators.
String literals are something enclosed with single or double
quotation. There is some deep shit inside it like what if you
want to add (“) inside the string. there is a thing called escape
sequence .I don’t know if I am overthinking or going too deep
we’ll discuss in class this is slightly deep .
4. (operators)
Comparison Operators
Comparison or Relational operators compare the values. It either returns
True or False according to the condition.
> Greater than: True if left operand is greater than the right x>y
< Less than: True if left operand is less than the right x<y
Less than or equal to: True if left operand is less than or equal to
<= the right x <= y
Logical Operators
Logical operators perform Logical AND, Logical OR, and Logical NOT operations. It
is used to combine conditional statements.
and Logical AND: True if both the operands are true x and y
Bitwise Operators
Bitwise operators act on bits and perform the bit-by-bit operations. These are
used to operate on binary numbers.
Operator Description Syntax
| Bitwise OR x|y
~ Bitwise NOT ~x
Assignment Operators
Assignment operators are used to assign values to the variables.
Operator Description Syntax
5. (Punctuators)
These are just the bunch of symbols left behind and it helps to organize
shits.
Most common punctuation are
‘ “ # \ !(not /) ( ) { } [ ] @ , : . ` =