|
|
The output is- E
Its because cout<<*p; represents the first character of the array, which is D.
now, if it was cout<<*p++; it is post-incrementation, which means, D will be print & then the first element will be incremented to E.
had it been cout<<++*p; it is pre-incrementation, which means, it will increment the first value to E and then print it.
since v hav cout<<++*p++; it is both pre-incremented & post-incremented. so the output will be E. but if u happen 2 use p afterwards, the first element will be F.
|