1. Suppose we have a byte-addressable machine, i.e., each byte is accessed via an address. Let the locations for an array be allocated in a row-major manner, and each element of an array takes 4 bytes. Assume that the address of the first byte of the array is 500 in all the following cases. Which of the following is true?
(A) The address of the element A10 in an array declared as A100 is 24586;
(B) The address of the element A1030] in an array declared as A[100[300] is 177899;
(C) The address of the element A[10] in an array declared as A[100] is 536;
(D) The address of the element A1030 in an array declared as A100300 is 76457217.
答案:登入後查看
統計: 尚無統計資料
統計: 尚無統計資料