Vidyalelo
C Programming · Q27

Pointer

Programming · C Programming · question 27

Q27

What is the result of the expression *ptr = 42 in C, where ptr is a pointer to an int?

A.
Set the value pointed to by ptr to 42
Answer
B.
Set the address pointed to by ptr to 42
C.
Set the size of ptr to 42
D.
Set ptr to a null value

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board