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.) |
|||
Line 8: | Line 8: | ||
In this case an arithmetic expression is used to store the number 15 in the variable ''a''. | 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]]. | |
− | |||
− |
Latest revision as of 05:24, 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.
Arithmetic expressions are only one type of Expressions.