Top

Discussion

What is the output of the below code snippet?

#include

main() 
{
   unsigned x = 5, y=&x, *p = y+0; 

   printf("%u",*p);
}

 

  • A.Address of x
  • B.Address of y
  • C.Address of p
  • D.5

Answer: D

5, as p holds the address of x which is y+0

No comment is present. Be the first to comment.
Loading…

Post your comment