KVS 30-12-2018 Part B
October 28, 2023
GATE 1991
October 28, 2023
KVS 30-12-2018 Part B
October 28, 2023
GATE 1991
October 28, 2023

KVS 30-12-2018 Part B

Question 11
If the address of A[1][1] and A[2][1] are 1000 and 1010 respectively and each element occupies 2 bytes, then the array has been stored in ____ order
A
Row major order
B
Column major
C
Matrix major
D
Simple
Question 11 Explanation: 
→Row-major order and column-major order are methods for storing multidimensional arrays in linear storage such as random access memory.
→First element address is 1000 and Second element address is 1002 and so on

→A[2][1] means Second row first element whose address is 1010.
Correct Answer: A
Question 11 Explanation: 
→Row-major order and column-major order are methods for storing multidimensional arrays in linear storage such as random access memory.
→First element address is 1000 and Second element address is 1002 and so on

→A[2][1] means Second row first element whose address is 1010.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!