May 2012
Intermediate to advanced
679 pages
16h 56m
English
Operators can be divided into several categories. Let us discuss these categories one by one.
Following table illustrates common arithmetic operators.
The modulus operator (%) results in the remainder. It may be noted that operand of * and / must have arithmetic type. The operands of % must have integral type1. You will be surprised to see the result of 5/4 as 1. In computer programs, division of one integer by another integer is termed as integer division. It results in integer answer. Any fractional part is just discarded. Operators + and – also find use in pointer expressions. It will ...
Read now
Unlock full access