Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        int main()
        {
            if (7 & 8)
            printf("Honesty");
                if ((~7 & 0x000f) == 8)
                    printf("is the best policy\n");
        }

  2. A.
    Honesty is the best policy
    B.
    Honesty
    C.
    is the best policy
    D.
    No output

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    None.


Be The First To Comment