15122 Principles of Imperative Computation
Lecture 3: Ints
 Reading: 03ints.pdf
 Code: none
 Concepts:
 Binary representation of natural numbers
 Modular arithmetic
 Two's complement representation
 Hexadecimal notation
 Bitwise operations on ints: and, or, xor (exclusive or)
 Algorithm for binary addition
 RGB color model
 ARGB representation of pixels in ints
 Shifting and masking
 Previous lecture: Contracts
 Next lecture: Arrays
[ Home
 Schedule
 Assignments
 Resources
]
[
Blackboard
 academic.cs.15122
]
fp@cs
Frank Pfenning
