Question: C Programming Question: 1) int *p; p = &a, what do we say about p at this point? a) p points to integer a b)

C Programming Question:

1) int *p; p = &a, what do we say about p at this point?

a) p points to integer a

b) p is equal to a

c) a now points to integer p 2)

int a =1, b =2, z[10]; 
int *p; 
p = &a; b = *p; *p = 0; 
p = &z[0]; 

What can we say about p and a at this point? a) a now points to z[0] and p is currently 0

b) p now points to z[0] and a is currently 0

c) p is equal to z[0] and a is currently 0

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!