Sail E0 Webinar
Question
What is the output of this C code?    void main()    {        static int x;        if (x++ < 2)        main();    }
Options:
A .  Infinite calls to main
B .  Run time error
C .  Varies
D .  main is called twice
Answer: Option D


None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers