Now, Sir discuss about Logical Operator. Ooh.. guys did you know what is that?? haha. I didn't understand too mch about that. Haha. I'm so confused also on the other operator. I thought this topic is one of the hard lesson for me. hehe. Here are the definitions about the different operators. Also, sir discuss about the precedence and Associativity....
Logical Operator An instruction in which the quantity being operated on and the results of the operationcan each have two values. Logical operations include AND, OR, NAND, XOR, and NOR.
Precedence
Operator precedence determines the order in which operators are evaluated. Operators with higher precedence are evaluated first.
A common example: 3 + 4 * 5 // returns 23
The multiplication operator ("
*") has higher precedence than the addition operator ("+") and thus will be evaluated first.
Associativity
Associativity determines the order in which operators of the same precedence are processed. For example, consider an expression: a OP b OP c
Okay that's the lesson that we tackled.
That's all for this week! Thannks!
-chartine:p
Walang komento:
Mag-post ng isang Komento