Hey guys, i've been reading up on arrays and the book i am reading explains that the array's address is really the address of the first element and when you want to access any other elements of the array, the computer works out the location of the element based upon what type of array it is (int,float etc) and multiplies this by the element number to work out the address of the requuired element.
I understand this and it makes sence for contiguous memory. But what happens when a large array is being dealt with and the memory it takes up is not contiguous? How does the computer know how to deal with this?
I understand this and it makes sence for contiguous memory. But what happens when a large array is being dealt with and the memory it takes up is not contiguous? How does the computer know how to deal with this?