13. A[0, 2]的位址是 98,A[2, 0]的位址為 108,每一元素大..-阿摩線上測驗
1F
|
2F
|
3F queen0741 小一下 (2020/05/14)
96 97 98 99 100 101 [0,0] [0,1] [0,2] [0,3] [0,4] [0,5] 102 103 104 105 106 107 [1,0] [1,1] [1,2] [1,3] [1,4] [1,5] 108 109 110 111 112 113 [2,0] [2,1] [2,2] [2,3] [2,4] [2,5] 114 115 116 117 119 120 [3,0] [3,1] [3,2] [3,3] [3,4] [3,5] A[0,0] =98-2=96 每行陣列長度=(108-96)/2=12/2=6 A[3,3]=96+(6*4-2)-1 = 117 //A[0,0]=96, 每行陣列=6(0~5), 陣列行數=4(0~3), 減2(第三行[3,4] [3,5] ),減1(減去重複部分... 查看完整內容 |