C Programming Language Syntax

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

Answer: *ptr
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.

This question appeared in Past Papers (1 times)
This question appeared in Subjects (1 times)

Install this app on your device for quick access right from your home screen.