Expressions and Interactivity: Namiq Sultan
Expressions and Interactivity: Namiq Sultan
Expressions and Interactivity: Namiq Sultan
Namiq Sultan
University of Duhok
Department of Electrical and Computer Engineerin
(unary negation) -
* / %
+ -
Expression Value
5+2*4 13
10 / 2 - 3 2
8 + 12 * 2 - 4 28
4 + 17 % 2 - 1 4
6-3*2+7-1 6
(3)(12) 3 times 12 3 * 12
double
C++ Programming, Namiq Sultan 19
3.5 The Typecast Operator
• The typecast operator allows you to perform manual data type
conversion.
65
A
A = B = C = D = 12;
Store1 = Store2 = Store3 = BegInv;
Description Returns the absolute value of the argument. The argument and
the return value are integers.
Description Returns the square root of the argument. The return type and
argument are doubles.