Q:

Guess the output of the following code:

0

Guess the output of the following code:

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

  1. 3 3
  2. 4 4
  3. 3 4
  4. Runtime error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

3 4

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now