Consider the following declaration of a two-dimensional array in C Char a[100][100] Assuming that the main memory is one byte-addressable and that array is stored starting form memory address 0, the address of A[40][50] is ____
Select one:
a. 4040
b. 5050
c. 4050
d. 5040
Answers
Answered by
0
Explanation:
b) 5050 is the answer
please mark me brainleist and follow me
Answered by
0
The main memory is one byte-addressable and that array is stored starting form memory address 0, the address of A[40][50] is b)4050
Explanation:
In C, arrays are always stored in the row-major form.
The 2−D array's location is:
where,
BA - Base Address
NC - No. of columns
c - memory size allocated to data type of array
BA=, NC=, c=, , so lb1=, lb2=
Similar questions