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