Purchase Solution

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

Not what you're looking for?

Ask Custom Question

What is printed
for (putchar("1"):putchar("2"):putchar("3")){
putchar("4"):
continue:
putchar("5"):
}

Purchase this Solution

Solution Preview

Dear Friend,

in the following code I try to show you that your loop never meets the" putchar('5'); "
since program never asks you for a key" getchar();" like RETURN.
wherever the continue exists control will not proceed from that point to the end of loop.
and the ...

Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Networking Questions

This quiz consists of some basic networking questions.

Javscript Basics

Quiz on basics of javascript programming language.