Course Content
History of C Language
0/2
Basic Structure of C Program
0/1
Types of Errors
0/1
Language Fundamentals
0/1
Data Types and Modifiers
0/1
Programming with C Language
About Lesson

Arithmetic Operators

As the name saying they are used to perform arithmetic operations on two operands.  Arithmetic operators can work on numeric data types like int, float and double.  All the arithmetic operators are binary operators.

Operator Symbol

Operation

+

Addition

Subtraction

*

Multiplication

/

Division

%

Modulus (Integer Operator)

Order of Precedence for Arithmetic Operators:

  1. Brackets evaluates first.  In case of nested brackets, inner one evaluates first then outer.
  2. Multiplication, division and modulus have next precedence.  If all or some of them are there, then evaluation is left to right.
  3. Addition and subtraction have last precedence.  If both exists, evaluation is left to right.

You cannot copy content of this page