Difference between int const *ptr and int * const ptr
Filed under Qualcomm
The question
Explain the difference between a pointer to a constant integer (`int const *ptr`) and a constant pointer to an integer (`int * const ptr`).
No write-up yet. Related questions below have one.
Related Qualcomm questions
Collected from public candidate posts and coding forums. Updated Nov 2026.