Trace the output of the following program segment.
int *ptr1,*ptr2;
...
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Trace the output of the following program segment. int *ptr1,*ptr2; int x=3, y=4; ptr1=&x; ptr2=&y; ++(*ptr1); *ptr2=*ptr1 + *ptr2; printf(“%d %d”,x,y);