Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        void main()
        {
            static int x;
            if (x++ < 2)
            main();
        }
  2. A.
    Infinite calls to main
    B.
    Run time error
    C.
    Varies
    D.
    main is called twice

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    None.


Be The First To Comment