Suppose the following declarations are in effect int arr 5
Solution
int arr[]={5,3,35,54,12,1,33,12};
int *p=&arr[1],*q=&arr[5];
a. *(p+3)=12
b. *(q-3)=35
c. (q-p)=4
d. (p<q)=true
e. (*p<*q)=false
![Suppose the following declarations are in effect. int arr[] = [5, 3, 35, 54, 12, 1, 33, 12]; int *p = &a;[1] *q = &a;[3]; What is the value of *(p + 3) Suppose the following declarations are in effect. int arr[] = [5, 3, 35, 54, 12, 1, 33, 12]; int *p = &a;[1] *q = &a;[3]; What is the value of *(p + 3)](/WebImages/15/suppose-the-following-declarations-are-in-effect-int-arr-5-1024349-1761530162-0.webp)
int arr[]={5,3,35,54,12,1,33,12};
int *p=&arr[1],*q=&arr[5];
a. *(p+3)=12
b. *(q-3)=35
c. (q-p)=4
d. (p<q)=true
e. (*p<*q)=false
![Suppose the following declarations are in effect. int arr[] = [5, 3, 35, 54, 12, 1, 33, 12]; int *p = &a;[1] *q = &a;[3]; What is the value of *(p + 3) Suppose the following declarations are in effect. int arr[] = [5, 3, 35, 54, 12, 1, 33, 12]; int *p = &a;[1] *q = &a;[3]; What is the value of *(p + 3)](/WebImages/15/suppose-the-following-declarations-are-in-effect-int-arr-5-1024349-1761530162-0.webp)