Question: The output of following code is _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ int a =

The output of following code is ________________
int a=1,b=3;
int *ptr1,*ptr2;
ptr1=&a;
ptr2=&b;
*ptr2=3+ a;
ptr1=ptr2;
*ptr1=9;
ptr2=&a;
b=6;
*ptr2=*ptr1+1;
printf("%d %d %d %d
",a, b,*ptr1,*ptr2);

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!