Top

Discussion

What is the output of this C code?

int x = 5;
    void main()
    {
        int x = 3;
        printf("%d", x);
        {
            x = 4;
        }
        printf("%d", x);
    }

 

  • A.Run time error
  • B.3   3
  • C.3   5
  • D.3   4

Answer: D

No answer description available for this question.
 

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

Post your comment