Top

Discussion

What is the output of this C code?    

int main()
    {
        int y = 1;
        if (y & (y = 2))
            printf("true %d\n");
        else
            printf("false %d\n");
 
    }

 

  • A.true 2
  • B.false 2
  • C.Either option a or option b
  • D.true 1

Answer: C

No answer description available for this question.

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

Post your comment