Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        void main()
        {
            static int x = 3;
            x++;
            if (x <= 5)
            {
                printf("hi");
                main();
            }
        }
  2. A.
    Run time error
    B.
    hi
    C.
    infinite hi
    D.
    hi  hi

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    None.


Be The First To Comment