Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. Comment on the following code below?


        void main()

        {

           int x = 5;

            if (true);

                printf("hello");

        }

  2. A.
    It will display hello
    B.
    It will throw an error
    C.
    Nothing will be displayed
    D.
    Compiler dependent

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    none


Be The First To Comment