Question: Endianness We have declared the variables: int x = 1 1 2 2 3 3 4 4 5 5 ; unsigned int ux = 3
Endianness
We have declared the variables:
int ;
unsigned int ux ;
int arr;
char s Endian;
The variable is stored at ux at arr at and at
If our system is littleendian, what values would be stored on each byte?
You can write the hexadecimal representation of the value at each address.
Hint: You might want to look up the ASCIItohex conversion table!
tabletimes times times times times times times times times times times Atimes Btimes Ctimes Dtimes Etimes Ftimes times times times times times times times
Now, what would these values be if our system were bigendian instead?
tabletimes times times times times times times times times times times Atimes Btimes Ctimes Dtimes Etimes Ftimes times times times times times times times
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
