Engineering Science 1036A/B Lecture Notes - Lecture 8: Operand

27 views2 pages
Expressions
Series of outputs and their inputs
Evaluated from left-to-right
Math Functions
Include <cmath> library
Arithmetic Conversion
Implicit Conversion
Final result of the expression (with different numerical data types) will be stored
using a data type of the operand having the highest data range in the memory
Explicit Conversion: Cast
int a can be explicitly converted to a float variable by the cast operator:
(float)a
Cast operator:
(data_type)variable or data_type(variable)
Unary operator
Works only for the part of the statement that uses it
Arithmetic
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions