Question
What is the output of this C code?
  int main()
  {
    int x = 0;
    if (x == 0)
      printf("true, ");
    else if (x = 10)
      printf("false, ");
    printf("%d\n", x);
  }
Answer: Option B
Was this answer helpful ?
none
Was this answer helpful ?
More Questions on This Topic :
Question 4. if (a == 1||b == 2){} can be written as: ....
Question 8. Example of iteration in C. ....
Submit Solution