Top

Discussion

What is the output of this C code?

void main()
    {
        m();
        m();
    }
    void m()
    {
        static int x = 5;
        x++;
        printf("%d", x);
    }

 

  • A.6   7
  • B.6   6
  • C.5   5
  • D.5   6

Answer: A

No answer description available for this question.

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

Post your comment