Q. What is the output of this code?
Code:
int a = 10;
int *p = &a;
printf("%d", *p);
β
Correct Answer: (B)
10
Explanation: *p gives the value stored at address p, which is 10.