Arithmetic Expressions

From mi-linux
Revision as of 06:24, 25 January 2010 by In0316 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Arithmetic expressions contain operators for doing arithmetic such as * for doing multiplication.


Example

int b = 5; int a = 3 * b;

In this case an arithmetic expression is used to store the number 15 in the variable a.

Arithmetic expressions are only one type of Expressions.