Top

Discussion

What is the output of this C code?

#include 
    int x = 0;
    void main()
    {
        int *ptr = &x;
        printf("%p\n", ptr);
        x++;
        printf("%p\n ", ptr);
    }

 

  • A.Same address
  • B.Different address
  • C.Compile time error
  • D.Varies

Answer: A

No answer description available for this question.

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

Post your comment