Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        int main()

        {

            if (printf("%d", printf(")))

                printf("We are Happy");

            else if (printf("1"))

                printf("We are Sad");

        }

  2. A.
    0We are Happy
    B.
    1We are Happy
    C.
    1We are Sad
    D.
    Compile time error

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    none


Be The First To Comment