Operator, Operand and Arithmatic
by joydaniel on 14/10/2015Catatan kelas besar Kamis, 8 Oktober 2015
Operator = Simbol atau tanda memproses nilai membuat hasil
Operand = Nilai
Misal:
Proses penghitungan
C = A + B;
A, B, C adalah Operand
=, + adalah Operator
Assignment Operator
Operand1 = Operand2
Arithmatic Operator
+, -, *, /, %, ++, –, ()
misal:
x = (5+2)*1
A++, ++A, A–, –A; post increment, pre increment, post decrement, pre decrement
True = T = 1
False = F = 0
Logical Operator &&
mempunyai 2 logika
^ = pangkat/pow
XOR= a|b & !(a&b)
Bitwise operator
misal:
10
23 22 21 20
1 0 1 0
No comments yet.