Question: 7 Assume that j is an int variable and q and p are pointers to int. Which of the following assignments are legal? Encircle what

7 Assume that j is an int variable and q and p are pointers to int. Which of the following assignments are legal? Encircle what you think is legal (a) p qi (b) &p q/ (f) p-j; (g) p*q (h) *p-qi Hint: Both sides of the equations should be of the same kind 8 Suppose the following declarations and statement are in effect. What are the values of x and y in each case? (a) int x 5, y= 12, *p- 6%, *g- &y; m *n; 2; kn 5; *a *b; *a2
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
