Explore BrainMass

Explore BrainMass

    FOR loop and CONTINUE statement

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    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 March 4, 2021, 8:19 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.49

    ADVERTISEMENT