Question

    What will be the output of the code int

    main(){ int i; for(i=0;i int i; i=20; print(“%d”, i); } return 0; }
    A 20 20 20 20 20 Correct Answer Incorrect Answer
    B 0 1 2 3 4 Correct Answer Incorrect Answer
    C 0 20 2 20 3 20 Correct Answer Incorrect Answer
    D 20 21 22 23 24 Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    The correct answer is A

    Practice Next