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 null a keyword in c?

939


What is double pointer in c?

774


What are pointers? Why are they used?

872


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

918


how to create duplicate link list using C???

2283


Why do we need functions in c?

748


cavium networks written test pattern ..

3824


What is integer constants?

817


What is meant by recursion?

836


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

983


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

826


What is the difference between array_name and &array_name?

1000


what are enumerations in C

933


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

831


What is a memory leak? How to avoid it?

895