Question: 1. Determine the output of every printf statement in the below code fragment. Explain why. Answers without explanations will not be accepted. int ptr; int

1. Determine the output of every printf statement in the below code fragment. Explain why. Answers without explanations will not be accepted. int "ptr; int x; ptr = &x; ptr -e; printf(" printf(" x = %d ", x); *ptr =%d ", *ptr); ptr+5; printf(" x-%d ", x); printf(" *ptr-%d " , *ptr); (*ptr)++i printf(" x %d ", x); printf(" *ptr = %d ", *ptr)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
