Question: Consider the following C declarations: int iarr[100]; void *p = iarr; Which of the following expressions is semantically equivalent to iarr[50] *((int *)((char *)p +
![Consider the following C declarations: int iarr[100]; void *p = iarr;](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa690fce0bd_92766fa690f86e7c.jpg)
Consider the following C declarations: int iarr[100]; void *p = iarr; Which of the following expressions is semantically equivalent to "iarr[50]" *((int *)((char *)p + 50)) *(int *) ((char *)p + 50 * sizeof(int *)) O *(int *)((char *)p[50]) O ((int *)((char *)p + 50 * sizeof(int)))[0]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
