Ringkasan Algorithm & Programming and Introduction to C Programming (8 October 2015)

Operator is a symbol to process values in result for a new value,exp: C = A + B  (= and + sign are operators,A ,Band C are operands)

Based on its operand number, operator can be divided into Unary operator  (1 operand),Binary operator  (2 operands) ,Ternary operator  (3 operand).

Type of operator

  • Assignment Operator (=)
  • Logical Operator (&&=And, ||=or, !=Not)
  • Arithmetic Operator (+, -, (× or · or *), (÷ or /))
  • Relational Operator ( show relation between numbers equality (5 = 5) and inequalities (4 ≥ 3))
  • Bitwise Operator
  • Pointer Operator

Increment and Decrement
Symbol : Increment(++) and Decrement(–)
Pre increment (++N)
Post increment (N++)
Pre decrement (–N)
Post decrement (N–)

 

 

 

Respond to this post