阿摩線上測驗 登入

試題詳解

試卷:109年 - 108 國立中山大學_碩士班招生考試_電機系(丙組):資料結構#124087 | 科目:中山◆電機◆電磁學

試卷資訊

試卷名稱:109年 - 108 國立中山大學_碩士班招生考試_電機系(丙組):資料結構#124087

年份:109年

科目:中山◆電機◆電磁學

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.

正確答案:登入後查看

詳解 (共 1 筆)

推薦的詳解#6840848
未解鎖
題目解析 這道題目考察的是在一個字節可...
(共 1394 字,隱藏中)
前往觀看
0
0