answersLogoWhite

0


Best Answer

A continue statement is used to "branch" to the end of a loop without exiting the loop. If we wish to exit the loop entirely, use a break or return statement.

for (int i=1; i<10; ++i) {

if (i==5) continue;

printf (%d ", i);

}

printf ("\n");

The above loop will print the following:

1 2 3 4 6 7 8 9

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How would you define Continue statement?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Would you continue to work for a company if you disagreed with the firm's mission statement why or why not?

Would you continue to work for a company if you disagreed with the firm's mission statement


How would you declare a constant of 5 called MYCONST?

A constant of 5 called MYCONST would be declared as #define MYCONST 5. This is because the statement used is a define statement.


Can a continue statement be used in a switch statement?

If you have a loop in your switch statement or around your switch statement, you can use the continue statement in that. You cannot use a continue statement outside of a loop (do, for, or while).


How would you define the term proposition?

A point of view worded as a statement expressing an opinion that can be defended for or against


Difference between goto and continue statement in c language?

In continue statement, we immediately continue next step through loop In go to statement, we go to in perfect label which we call.


How can you define null statement in loop in C programming?

If you are using for loop for(;;); or you can also define condition and iterations but the loop has to close there itself without any statement inside it. In the similar way you can define while and do while loop without any statement.


Define thesis statement?

A thesis statement is a concise summary of the main point or claim of an essay, research paper, or other types of writing. It usually appears at the end of the introduction and guides the reader on what the piece of writing will be about.


Where is the continue statement NOT usually used?

The continue statement is not actually used when it is the last statement of the body of the loop. Plus: outside any loop it is rarely or never used.


What is the different between break and continue?

The break statement exits out of the smallest containing loop or switch-case statement. The continue statement transfers control to the next iteration of the smallest containing loop statement.


Why the continue statement not allowed in swicth statements?

'continue' is allowed anywhere in a loop's body. But, sure, it is not synonym of 'break', which is a different statement.


What are the five advantages of the record on family expenditure statement?

Define computer


Does X and Y define a statement?

The answer depends on what X and Y are.