What is that continue statement??

Answer Posted / sri

continue is a keyword,and when contine appears in a
loop ,the particular iteration is skiped for example
#include<stdio.h>
void main()
{
int i=0;
while(i<=5)
{
if(i==3)
continue;
printf("\t%d",i);
i++;
}
}
output:0 1 2 4 5.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c is a procedural language?

589


Explain zero based addressing.

601


What is a class c rental property?

601


What are the advantage of c language?

544


Write a program to know whether the input number is an armstrong number.

660






write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1672


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

643


How do I use void main?

623


What is the significance of an algorithm to C programming?

590


Write a program on swapping (100, 50)

634


Why do we use int main?

600


What does sizeof function do?

608


What are identifiers c?

560


What does s c mean on snapchat?

579


C program to find all possible outcomes of a dice?

1844