Top

Discussion

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;

    }

 

  • A.After loop
  • B.In for loop after loop
  • C.Compile time error
  • D.Infinite loop

Answer: A

No answer description available for this question

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

Post your comment