605 views
0 votes
0 votes

1 Answer

1 votes
1 votes
We're printing **++ptr+1

Adding brackets for simplicity (*(*(++ptr))+1)

ptr points to p[0]
*(++ptr) point to *p[1] which is s+1

*(s+1) points to "efg"

printf("%s","efg" + 1);
prints fg

So answer is B)

No related questions found