Question: What is the output from this code fragment: int *p1; int *p2; inti = 10; int j = 20; p1 = & i; p2 =

What is the output from this code fragment:
int *p1;
int *p2;
inti = 10;
int j = 20;
p1 = & i;
p2 = &j;
p1 = 30;
printf("%d %d ", i, j);
*p1 = * p2;
printf("%d %d", * p1, * p2);
C code

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!