The expression \( p++ \) involves the post-increment operator. It first prints the value of \( p \), which is 13, and then increments the pointer \( p \). After the increment, the pointer points to the second element of the array (31). The next dereference of \( p \) prints 14, since the pointer now points to 31 and then increments again.
Thus, the output is \( 13, 14 \).
Was this answer helpful?
0
0
Top AP PGECET Computer Science & Information Technology Questions