What is that continue statement??

Answers were Sorted based on User's Feedback



What is that continue statement??..

Answer / satya

continue is a keyword..
whenever this statement encountered in a loop , the control
will immediately send to the starting of the loop , without
continuing the sequence of statements...

starting of the loop means
1)control goes to incremental operator if it is for loop
2)control will go to condition checking statement in while
loop...

Is This Answer Correct ?    2 Yes 0 No

What is that continue statement??..

Answer / amol p.deokar

When Continue is encountered inside any loop,control automatically passes to the beginning of the loop.

A cont.. is usually associated with an if

Is This Answer Correct ?    0 Yes 0 No

What is that continue statement??..

Answer / 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

What is that continue statement??..

Answer / palani222samy

continue:

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Is main a keyword in c?

0 Answers  


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

0 Answers  


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

0 Answers  


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

0 Answers  


How many bytes is a struct in c?

0 Answers  


Is swift based on c?

0 Answers  


Famous puzzles which are generally asked by companies during interviews ?

1 Answers   3D PLM, Yahoo,


Prove or disprove P!=NP.

5 Answers   Microsoft,


what does " calloc" do?

7 Answers   Cadence, Logos,


What is the purpose of the statement: strcat (S2, S1)?

0 Answers  


In which header file is the null macro defined?

0 Answers  


why we use "include" word before calling the header file. is there any special name for that include??????

1 Answers   TCS,


Categories