Exercise 2         Name       _______________________   Points __/22

1. (16) Declare the following:
  1. an 8-bit variable named a1 initialized to 'A',
  2. an 8-bit variable named b1 initialized to 100011012,
  3. a zero-terminated string variable named c1 initialized to your first name,
  4. a 16-bit variable named d1 initialized to your age,
  5. a 16-bit array variable named e1 of 20 values initialized to all zeroes,
  6. a 32-bit variable named f1 initialized to the current USA population,
  7. a signed 16-bit variable named g1 initialized to the most negative 16-bit value,
  8. a 32-bit real variable named h1 initialized to pi,

2. (6 points) Assume each variable defined below starts at offset 00000000.

    List the individual bytes as they would be arranged in memory, lowest to highest offset, for the following definitions:

a) 2a    byte    1, 2, 3, 4, 5

b) 2b    word    1, 2, 3, 4, 5

c) 2c    dword   1, 2, 3, 4, 5