Notes on
C Operator
Instructor:
Arghodeep Paul
Firmware Engineer at BitBible Technologies Pvt. Ltd.
Content Author: Arghodeep Paul
License: OpenSource
Date: 15 July 2021
Operator
An Operator is a Special Symbol that which performs specific operations on it’s
operands.
Operand
Operands are the elements on which the operator works. These elements can be
Variable, Constant or a Function result.
Types
Unary: works with one operand.
Increment/Decrement Operator: ++,--
Binary: works with two operands.
Logical: !, ||, &&
Arithmetic: +, -, *, /, %
Bitwise: &, |, <<, >>, ~, ^
Relational: >, <, >=, <=, ==, !=
Assignment: =, *=, +=, -=, /=, %=, =
Ternary: works with three operands.
?:
Syntax
Expression?statement1:statement2

C operators

  • 1.
    Notes on C Operator Instructor: ArghodeepPaul Firmware Engineer at BitBible Technologies Pvt. Ltd. Content Author: Arghodeep Paul License: OpenSource Date: 15 July 2021
  • 2.
    Operator An Operator isa Special Symbol that which performs specific operations on it’s operands. Operand Operands are the elements on which the operator works. These elements can be Variable, Constant or a Function result. Types Unary: works with one operand. Increment/Decrement Operator: ++,-- Binary: works with two operands. Logical: !, ||, && Arithmetic: +, -, *, /, % Bitwise: &, |, <<, >>, ~, ^ Relational: >, <, >=, <=, ==, != Assignment: =, *=, +=, -=, /=, %=, = Ternary: works with three operands. ?: Syntax Expression?statement1:statement2