What is that continue statement??
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
main() { int i = 10; printf(" %d %d %d \n", ++i, i++, ++i); }
array contains zeros and ones as elements.we need to bring zeros one side and one other side in single parse. ex:a[]={0,0,1,0,1,1,0,0} o/p={0,0,0,0,0,1,1,1}
what are the facialities provided by you after the selection of the student.
1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file
Ow can I insert or delete a line (or record) in the middle of a file?
What is the general form of #line preprocessor?
What are the 3 types of structures?
Can anyone help me with this please? Need to print the below values.. Thanks 1 1 2 1 2 3 1 2 3 4
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
How can I implement sets or arrays of bits?
What is wild pointer in c?
f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?