Question: Question: int *p; int b[]={ 1,2,3); void main(void) p &b[2]; b[1] = *p; address of b[2] goes to p content of memory pointed by p

 Question: int *p; int b[]={ 1,2,3); void main(void) p &b[2]; b[1]

Question: int *p; int b[]={ 1,2,3); void main(void) p &b[2]; b[1] = *p; address of b[2] goes to p content of memory pointed by p goes to address decremented by 2 p--s What is new value of b[l] and *p

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!