Question
1.
2.
3.
4.
Answer (Detailed Solution Below)
Option 2 : 1068 / 1068
Advertisement
Detailed Solution
सही उत्तर 1068 / 1068 है।
Key Points
Helpful?
Question:
An integer array A[10][10] is stored row-major starting at address 1000, with each integer occupying 2 bytes. The address of A[3][4] is / एक पूर्णांक ऐरे A[10][10] पंक्ति-प्रमुख (row-major) क्रम में पते 1000 से संग्रहीत है, प्रत्येक पूर्णांक 2 बाइट लेता है। A[3][4] का पता है
1.
1034 / 1034
2.
1068 / 1068
3.
1074 / 1074
4.
1134 / 1134
Correct Answer: 1068 / 1068
The row-major address equals base plus (row times number of columns plus column) times element size, which is 1000 + (3 times 10 + 4) times 2 = 1068. / पंक्ति-प्रमुख पता बराबर आधार जमा (पंक्ति गुणा स्तंभों की संख्या जमा स्तंभ) गुणा तत्व आकार होता है, अर्थात 1000 + (3 गुणा 10 + 4) गुणा 2 = 1068।
Downloaded from PrepSnap (prepsnap.in)