Algorithm 2

The next algo class, we study more algorithm (you don’t say). We learn new stuff , good stuff. I learn about Operator. Operator is a symbol to process value to create a new value (Tadaa!). For examples, C=A+B, + is an Operator, and those A and B are Operand, that Operand thing is an object which an operation is performed. Those Operand ,it’s divided again to three categories.

First, we got Unary operator which need 1 operand.

Second, Binary operator need 2 operands.

and Third, is Ternary which need 3 operands.

Now for the Operator. Operator has much more categories. Operator has 6 different category.

We got assignment operator, which symbolize as “=”, without quotation.

Next, Logical Operator with “&&” as an “and”, “||” as an “or”, and “!=”, as a “Not”.

Then there is Math Operator. “+”,”-“,”*”,”/”, you get the idea.

There is also Relational Operator like, “2=2” for equality or inequality like “2=>3”

Finally we got bitwise operator and Pointer operator .

I think that’s what stuck in my head, hope i remember more next time.

Leave a Reply

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