581 views

1 Answer

0 votes
0 votes
In an array, the memory space is allocated in a contiguous manner. Therefore if we know the address of a[i-1] then can find the address of a[i] by going forward in memory by the size of integer. Hence the answer.

Related questions

1 votes
1 votes
1 answer
1
Mrityudoot asked Feb 2
249 views
In what cases does an uninitialized array have values = 0 and for which cases does it have values = garbage values. How to differentiate?
1 votes
1 votes
1 answer
2
Mrityudoot asked Feb 2
133 views
Does C support fractional Indices?float x = some fraction;Is float a[x] valid declaration?
1 votes
1 votes
1 answer
3
amitarp818 asked Oct 25, 2023
409 views
How is the address written for 3-dimensional arrays?In some answers, I saw (row, column, frame) and in others, it was (frame, row, column) Which one to follow??Also, how ...
2 votes
2 votes
3 answers
4
Nitesh_Yadav asked Jul 2, 2022
1,985 views
An array VAL[1..15][1..10] is stored in the memory with each element requiring 4 bytes of storage. If the base address of array VAL is 1500, determine the location of VAL...