Algorithm & Programming Session #02

In this post I’m going to talk about the lesson about Algorithm & Programming that took place at the 8th of October.

The topic for that day is : Operator, Operand, & Arithmetic.

There are three types of OperandĀ :

1. Unary : A type of calculation using one operand

2. Binary : A type of calculation using two operands

3. Ternary : A type of calculation using three operands

There are also types of operator based on it’s operation type:

1. Assignment Operator, as told by the name, it is used mainly for assigning a type of data; ex: x=2, so the value of x is 2

2.Logical Operator, an operator using the true & false value using && and ||

3.Arithmetic Operator, mainly used for basic calculation such as addition +, subtraction -, multiply *, division /, modulo %, increment ++, decrement ++, priority ( ).

4.Relational Operator, using the true and false value, but with a certain functionality such as equality, not equal, less/more than, etc.

5.Bitwise Operator, used for calculating binaries from a certain data.

6.Pointer Operator

 

That’s basically it, so…. yeah :l

Thank you for reading ^^

 

Leave a Reply

Your email address will not be published. Required fields are marked *