Question: Output of following program? #include main() int int ptr int printf printf x %d = , *ptr); *ptr 5; printf printf x

 Output of following program? #include main() int int ptr int printf

Output of following program? #include main() int int ptr int printf printf " x %d " = , *ptr); *ptr 5; printf printf " x %d " = , *ptr); (*ptr)++ printf printf " x %d " = , *ptr); return ptr = 0 ptr 5 ptr = 6 0 x = garbage value x- garbage value X = garbage value ptr = 6 ptr = 0 x- garbage value ptr garbage value ptr = 0 ptr = 0 ptr0

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!