A

Admin • 833K Points
Coach

Q. What is the output of this code?

Code:
int a = 10;
int *p = &a;
printf("%d", *p);
  • (A) a
  • (B) 10
  • (C) Address of a
  • (D) Undefined
  • Correct Answer - Option(B)
  • Views: 19
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

*p gives the value stored at address p, which is 10.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.