Ch02 Memory and Numbers - Chapter 2 Memory and Numbers Ch2...

Info icon This preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 2: Memory and Numbers
Image of page 1

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

View Full Document Right Arrow Icon
Ch 2 Overview Reading Companion: 2.2.2 Textbook: 2.1 - 2.3 Learning Objectives know the number of bits in a byte and the number of bytes in a short, long and quad determine whether an address is aligned to a given size translate between integers and values stored in memory for both big- and little- endian machines evaluate and write Java expressions using bitwise operators (&, |, <<, >>, and >>>) determine when sign extension is unwanted and eliminate it in Java evaluate and write C expressions that include type casting and the addressing operators (& and *) translate integer values by hand (no calculator) between binary and hexadecimal, subtract hexadecimal numbers and convert small numbers between binary and decimal 2
Image of page 2
Question 0.1 a0.i=0 a1.i=2 a0.i=1 a1.i=3 a0.i=2 a1.i=3 a0.i=3 a1.i=3 none of the above I don t know What prints when main() executes?
Image of page 3

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

View Full Document Right Arrow Icon
Draw a Picture a0 a1 the class A 1 i i s 2 3
Image of page 4