Examveda
Examveda

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

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


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer