WorksheetsArray Addr Calculation (Row Major Order)
Total questions: 9
Worksheet time: 9mins
For array a[100] calculate address of a[10]. Base address is 200 and the word size is 4 byte.
(a)
For array a[-150:120] calculate address of a[100]. Word size is 2 byte and base address is 100.
(a)
For array a[10][20] calculate address of a[8][5]. Word size is 2 byte and base address is 100.
(a)
For array a[10][20] calculate address of a[2][1], Word size is 2 byte and base address is 100.
(a)
For array a[10:20][-5:5] calculate address of a[15][0]. Word size is 2 byte and base address is 100.
(a)
For array a[-5:4][-5:4] calculate address of a[1][3], Word size is 4 byte and base address is 150.
(a)
For array a[10][20] calculate address of a[2][10]. Word size is 4 byte and base address is 0.
(a)
For array a[10][20] calculate address of a[5][3]. Word size is 4 byte and base address is 200.
(a)
For array a[-100:100][-50:45] calculate address of a[50][40]. Word size is 2 byte and base address is 100.
(a)
