WCS Quiz

Question 8

Which statement about the code below is true?

int a = 10;
int b = 20;
bool c;

c = !(a > b);
  • A: There is no error in the code snippet
  • B: An error will be reported because ! can work only with an int
  • C: A value 1 will be assigned to c.
  • D: A value false will be assigned to c

View my c code