234k views
4 votes
Write an expression that evaluates to 1 more than the value in the location pointed to by the integer pointer variable ip. Thus, if ip points to a location containing the value 3, the expression should evaluate to 4.

User Bao Dinh
by
7.1k points

1 Answer

7 votes
*ip+1
ip is a pointer to int
*ip is that int so *ip+1 is the value at ip plus 1
User Askilondz
by
6.5k points