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)
SPSC Past Papers (1 times)
This question appeared in
Subjects (1 times)
COMPUTER (1 times)
Related MCQs
- Correct spelling address, address, adress, adrees?
- In C and C++ programming languages, which symbol is used to access the value stored at a memory address:
- Which of the following is correct syntax in Excel?
- If the variable name is 'age' and the programmer wants to input age, which is the correct syntax?
- Which of the following is correct syntax for defining Mathematical constant PI using preprocessor directive in C language?
- which of the following is a correct cell address?
- Null pointer can be used as?
- Which of the following is a correct email format of Email address?
- A pointer variable may be initialized with
- PHP syntax is closed with