📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    âš¡ Azaadi sale - Celebrate Independence Day with Flat 55% Off On all courses! 13 to 17 Aug âš¡ Enroll Now

    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
    ask-question

    Not sure which exam is best for you Talk to our expert

    Get My Free Call