What is the correct syntax to access the value at address ptr in C, where ptr is a pointer?

Review the verified answer and explanation for this SPSC – Sindh Public Service Commission past-paper question on CampusFin.

What is the correct syntax to access the value at address ptr in C, where ptr is a pointer? Answer: *ptr

To access the value at the memory address stored in a pointer ptr in C, you use the dereference operator *. This is also known as the indirection operator. The syntax is *ptr, which gives you the value of the variable that ptr points to

Question context

This question is part of 💡 C Programming within the broader 💻 Programming subject and appears in the SPSC – Sindh Public Service Commission preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.