wpe41.gif (23084 bytes)CIS3355: Business Data Structures
Fall, 2008
 

1-. Given short a[30]; and the base address is 1550, what would print the following command?

     printf("%lu", & a[35]);

Answer

2-. Given float c [50]; and the base address is 900, what would print the following command?

    printf("%lu", & [40]);

Answer

3- Given long b [15][20]; and the base address is 12500, what is the address of b[8][5]?

Answer

4- Given int d [10][15]; and the base address is 315, what is the address of d[5][7]? (Assume 4 bytes for the integer)

Answer

5- What is the position of shor f[6]?

1500 1501 1502 1503 1504 1505
10000000 11001000 10001010 10001111 10000010 10101011
1506 1507 1508 1509 1510 1511
10101101 10001010 11111011 11111111 10101110 11000010
1512 1513 1514 1515 1516 1517
11100101 11110010 11000100 10001110 11111110 11000001

Answer

Return to main page