Question: Consider the declaration int i [ 2 0 ] = { 0 , 4 , 8 , 1 2 , 1 6 , 2 0

Consider the declaration
int i[20]={0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76};
int *p;
with i[0]starting at address 1000 on a Big Endian machine with 32-bit integers.
What does i[0] equal after the following statements?
p = &i[16];
i[0]=*(p -4)-17;
with i[0]starting at address 1,967 on a Big Endian machine with 64-bit doubles.
What does p equal after the following statement?
p = &i[-16]-6;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!