1.

Write a short note on literals.

Answer»

The five arithmetical operations supported by the C++ language are:

+ addition – subtraction

* multiplication

/ division

% modulus Operations of addition, subtraction, multiplication, and division literally correspond with their respective mathematical operators.

For example,

sum = 5 + 10;

difference = 10 – 5;

product = 2 * 5;

quotient = 10 / 2;

remainder = 11 % 3;



Discussion

No Comment Found