Professional Documents
Culture Documents
3Expressions&Type Conversion
3Expressions&Type Conversion
Evaluation
of Expressions,
Type Conversions
syntax of expressions
evaluation of expressions
Type conversion (automatic)
syntax of type casting(explicit conversion)
Example: y = x = a + 10;
x = 6 + (y = 4 + 5);
a X b c a*bc
(m + n) (x + y) (m + n) * (x +y)
ab
a*b / c
c
x
c x/y + c
y
3x 2 2 x 1 3*x*x+2*x+1
x=l/i +I*fd;