Question
What is the output of this C code?
  int main()
  {
    int i = 0;
    for (foo(); i == 1; i = 2)
      printf("In for loop\n");
      printf("After loop\n");
  }
  int foo()
  {
    return 1;
  }
Answer: Option A
Was this answer helpful ?
none
Was this answer helpful ?
Submit Solution