Q:

Assume the output of the following code:

0

Assume the output of the following code:

void main()
    {
        static int x;
        if (x++ < 2)
        main();
    }

  1. No output
  2. main() is called twice
  3. Run Time Error
  4. Varies

All Answers

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

Correct Answer:

main() is called twice

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