Top

Discussion

Which of the following statement is correct about the code snippet given below?

#include < stdio>

int main()
{
int a = 10, b = 2, c;
a = !( c = c == c) && ++b;
c += ( a + b- -);
printf( “ %d %d %d”, b, c, a);
return 0;

}

 

  • A.The program will print the output 1 3 0
  • B.The program will print the output 0 1 3
  • C.The program will results in expression syntax error
  • D.The program will print the output 0 3 1

Answer: A

No answer description available for this question.

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

Post your comment