Question 3 (15 points)

What is the output of this code? (Hint: think carefully about associativity)

uint8_t a[]={5,10};uint8_t *b=&a[0];
uint8_t c=(*b)++;
uint8_t d=*b++;uint8_t e=++*b;printf("%d, %d, %d\n",e,d,c);printf("%d,%d\n",a[0],a[1]);
4f07de02-4232-41b9-82a2-e8cf39fa32ec

added on October 23, 2026 at 18:40


return home
share