A

Admin • 833K Points
Coach

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;
}
  • (A) 10
  • (B) Address of a
  • (C) Garbage value
  • (D) Compilation Error
  • Correct Answer - Option(A)
  • Views: 23
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

*p gives the value of a, which is 10.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.