Q. What is the output?
Code:int a = 10;
int *p = &a;
printf("%d", *p);
β
Correct Answer: (B)
10
Explanation: *p dereferences the pointer to get value of a.