Sail E0 Webinar
Question
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");

    }

Options:
A .  0We are Happy
B .  1We are Happy
C .  1We are Sad
D .  Compile time error
Answer: Option D


none



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers