Suppose the following declarations are in effect int arr 5


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)? What is the value of *(q - 3)? What is the value of q - p? Is the condition p

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)

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site