Question: Assume we have the following code: 1 uint 3 2 _ t arr 3 2 [ 4 ] = { 0 x 1 1 2

Assume we have the following code:
1 uint32_t arr32[4]={0x1122,0x3344,0x5566,0x7788};
2 uint32_t *ptr32= arr32;
3 uint16_t *ptr16=(uint16_t *)arr32;
4 printf("0x%x
",*((uint8_t *)ptr32+1));
5 printf("0x%x
",(uint8_t)*(ptr16+2));
What are the values printed out from the above code?
Total points: 1203

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!