Explain the continue statement - computer programming, Programming Languages

Assignment Help:

Explain the Continue statement - Computer Programming?

This is alike to break but is encountered less frequently. It merely works within loops where its effect is to force an immediate jump to the loop control statement.

    In a while loop, jump to the test statement.

    In a do while loop, jump to the test statement.

    In a for loop, jump to the test, and perform the iteration.

The continue statement make the current iteration of a loop to stop and make the next iteration of the loop to begin immediately Like a break, continue should be protected by an if statement. It is wriiten simply as

continue;

The following code progression all characters except digits:

            for(j=0;j
            {

                        c=getchar();

                        if(( c > '0' )&&(c<='9'))

                                    continue; /* continue transfers control to begin next iteration */

                        .................................

                        .................................

            }

continue transfer the control to the beginning of the next iteration whereas break terminate the loop.


Related Discussions:- Explain the continue statement - computer programming

Find the dual - duality theory and complementary slackness, Linear Programm...

Linear Programming Consider the following optimization problem: min x s.t. x ≥ max{a1, a2, . . . , an} Rewrite this problem as a Linear Programming Problem. What is the

Algorithm of sort the given array remove the repeated value, Short Arrays: ...

Short Arrays: Array = randi(10,1,randi(6,1,1)+4)-5 This command will generate an array which you should be able to evaluate by hand (and also have your code evaluate for te

Developing a preprocessor for java, How and where to start to develop a pre...

How and where to start to develop a preprocessor for java

Program for simulate part of the game of yahtzee, This assignment will make...

This assignment will make use of arrays and functions to simulate a game. ASSIGNMENT DESCRIPTION This program will simulate part of the game of Yahtzee! The player will

Write out the syntax of nested if statements, Write out the Syntax of Neste...

Write out the Syntax of Nested if Statements? The universal form is                         If(expression 1)                         {

Web services information language, Web Services Information Language WCF is...

Web Services Information Language WCF is designed using assistance focused structure concepts to support allocated processing where solutions have distant customers. Customers can

Sql vb integration, I need an application that will gather data from one SQ...

I need an application that will gather data from one SQL Database and update another. Data is contained in dbo.CallList with following fields: Customer_ID, AlreadyPickedUp, Phone_N

Algorithem for create game application, Play is as follows: 1.) Player p...

Play is as follows: 1.) Player places a bet a. Bet is on one of three choice i. "Player" will win ii. "Banker" will win iii. Tie between the "Player" and the "Banker

Rewrite the xhtml code, Below is an example of an invalid XHTML page. Your ...

Below is an example of an invalid XHTML page. Your goal is to rewrite the code so that: No deprecated/obsolete tags are being used All elements are nested correctly (i.e

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd