What is the correct syntax to access the value at address ptr in C, where ptr is a pointer?
What is the correct syntax to access the value at address ptr in C, where ptr is a pointer?
Explanation
In C, the asterisk (*) symbol is used to dereference a pointer.
It means to access the value stored at the address held by the pointer.
Therefore, *ptr is the correct syntax to access the value at the address ptr.