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