Aspire Faculty ID #13677 · Topic: JAMIA MILLIA ISLAMIA MCA 2023 · Just now
JAMIA MILLIA ISLAMIA MCA 2023

Which C expression correctly represents this statement: “It decrements pointer p before fetching the character that p points to.”

Solution

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`

Previous 10 Questions — JAMIA MILLIA ISLAMIA MCA 2023

Nearest first

Next 10 Questions — JAMIA MILLIA ISLAMIA MCA 2023

Ascending by ID
Ask Your Question or Put Your Review.

loading...