Top

Discussion

What will be the output of the following C code?

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

 

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

Answer: C

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment