Which C expression correctly represents this statement:
“It decrements pointer p before fetching the character that p points to.”
🎥 Video solution / Text Solution of this question is given below:
Solution:
- `p--` → post-decrement (use then decrement)
- `--p` → pre-decrement (decrement then use)
Here, we need to **decrement p first**, then fetch the value it points to.
Hence, correct expression: `*--p`