Operators in C


Arithmetic Operators


Assignment Operators


Increment operator example
Example Program
Compound Assignment - do's and don't's

Relational Operators


Logical Operators

Note: C and C++ do short circuit evaluation. Evaluation of a compound relational expression terminates as soon as the truth or falseness of the entire expression can be determined. For example:

Pointer Operators

Example:
  int number = 12;
  int *ptr_to_int;

  ptr_to_int = &number;
  printf("\nValue = %d", *ptr_to_int);
Note: The output is Value = 12