I have to work on something , but I am making an error that I can not identify. Propably, it is going to sound simple to you but it's my first course on computer architecture and there is nothing in my slides or book. "We are given a memory, where the smallest chuck of information that can be adressed is 1 byte, and we use 32 - bit memory adresses. Arrays , contain doubles, and each elememnt is an 8 - byte one." &x=0x0000A100 ."
I want to compute the adresses of &x[i] , i=1,2..
What I did thought was the right approach is:
Since, we have a memory that is byte - adressable then we can do it as such :
&x[i] and &x[i+1] have a dc offset which is 8 -byte and since it is byte adressable then :
&x[i+1] = &x[i] + 8
And I used an online calculator to get these results :
But they are wrong...