Top

Discussion

What will be the output of the program?

#include
int main()
{
    int x = 10, y = 20;
    if(!(!x) && x)
        printf("x = %d\n", x);
    else
        printf("y = %d\n", y);
    return 0;
}

 

  • A.y =20
  • B.x = 0
  • C.x = 10
  • D.x = 1

Answer: C

No answer description available for this question.
 

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

Post your comment