What will be the output of the following C code? [code] #include <stdio.h> int main() { if (printf("%d", printf(")))

What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        if (printf("%d", printf(")))
            printf("We are Happy");
        else if (printf("1"))
            printf("We are Sad");
    }
A. 0We are Happy
B. 1We are Happy
C. 1We are Sad
D. compile time error
 

Tìm kiếm

Back
Top