Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        void main()

        {

            char *str = "";

            do

            {

                printf("hello");

            } while (str);

        }

  2. A.
    Nothing
    B.
    Run time error
    C.
    Varies
    D.
    Hello is printed infinite times

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    none


Be The First To Comment