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 |
a memory of 20 bytes is allocated to a string declared as char *s then the following two statements are executed: s="Etrance" l=strlen(s); what is the value of l ? a.20 b.8 c.9 d.21
what is the difference between getch() and getchar()?
write a own function to compare two strings with out using stringcomparition function?
What is the difference between test design and test case design?
How do I copy files?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is a static function in c?
How many levels of pointers can you have?
what is difference between declaring the pointer as int and char in c language?
How to use c/c++ code in JAVA
10 Answers CDAC, IBM, Satyam, Scope International,
Find the largest number from the given 2 numbers without using any loops and the conditional operator.
what is const volatile?