Difference between revisions of "Arithmetic Expressions"

From mi-linux
Jump to navigationJump to search
(Ugh. This page needs removing and expressions need to be refactored.)
(No difference)

Revision as of 05:23, 25 January 2010

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.

Navigation

Go back to Expressions.