Q. What will be the output of the following code?
Code:#include <stdio.h>
int main() {
int x = 10;
int *p = &x;
printf("%d", *p);
return 0;
}
β
Correct Answer: (A)
10
Explanation: *p gives the value stored at the address of x, which is 10.