Sail E0 Webinar
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;

    }

Options:
A .  After loop
B .  In for loop after loop
C .  Compile time error
D .  Infinite loop
Answer: Option A


none



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers