Suppose I have a variable var having a value of 3.
int var = 3;
Then I store the address of var
in a pointer named point
:
int * point = &var;
Now if the following operation (i.e. DEREFERENCING + POSTFIX-INCREMENT) is performed:
*point++;
what will be incremented - will the value 3
be incremented resulting in var
containing the value 4
, or will the value of variable point
be incremented, resulting in point
containing the memory address NEXT TO the memory address it previously contained?