Initial:
arr = {1,2,3,4,5}
p → arr[0]
First statement:
*p++
Post-increment
Value printed = *p = 1
Then pointer moves to next element.
Now:
p → arr[1]
Second statement:
*(p+1)
p+1 → arr[2]
Value = 3
Output:
1 3
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.