Sabtu, Juni 28, 2014

Operators Are Used On C programming Language

Arithmetic operators:
Operator name Syntax
Define value a = b
Addition a = b
Substraction a - b
Multiplication a * b
Pembagian a / b
Modulo a % b
Increment Prefix ++y
Increment Postfix ++y
Decrement Prefix ++y
Decrement Postfix ++y

Comparison operators/relational operators:
Operator name Syntax
Equal to a == b
Not equal to a != b
Greater than a > b
Less than a < b
Greater than or equal to a >= b
Less than or equal to a <= b

Logical operators:
Nama Operator Sintaks
Negation !a
AND a && b
OR a || b
NOT !a

Source:
wikipedia

0 komentar: