Explore BrainMass
Share

Explore BrainMass

    FOR loop and CONTINUE statement

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    ****This needs to be in "C"****

    Test the effect of a continue statement in the body of a for loop

    what is printed?

    for (putchar('1'); putchar('2'); putchar('3'))
    {
    putchar('4');
    continue;
    putchar('5');
    }

    ****This needs to be in "C"****

    © BrainMass Inc. brainmass.com October 9, 2019, 8:42 pm ad1c9bdddf
    https://brainmass.com/computer-science/compiler-theory/for-loop-continue-statement-160030

    Solution Preview

    Hi,
    Iam Leela Krishna from India. I am very happy to help you with this query. Find the answer with explanation below:

    All the best for your future.

    ========================== Answer Starts =======================
    The effect of Continue statement in a FOR ...

    Solution Summary

    Solution clearly explains the FOR looping construct in C and C++ and the effect of CONTINUE statement in FOR loop

    $2.19