20091123-Primitives-III

20091123-Primitives-III - Click to edit Master subtitle...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Click to edit Master subtitle style CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:50 645-4739 [email protected] Agenda • Today: – Primitives • operator types • floating point • mixing types • type casting and coercion • wrapper classes • Coming up: ‘+’ is overloaded • ‘+’ is just a name • ‘+’ has different interpretations – String concatenation – integer addition • addition of two’s complement numbers – floating point addition • addition of IEEE754 numbers type of ‘+’ • In the following expression, what is the type of ‘+’? 5 + 2 mappings • an operator / function maps from a domain set to a range set: DOMAIN RANGE ‘+’ as int addition • range is int • domain is pairs of int DOMAIN int X int RANGE int int • values: 0, 1, -1, 2, -2, … • maximum int: 2147483647 = +2(32-1)-1...
View Full Document

{[ snackBarMessage ]}

Page1 / 14

20091123-Primitives-III - Click to edit Master subtitle...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online