In: Computer Science
Variables in C Language
Syntax:
Datatypes variable name = value ;
E.g
int num = 115;
char Name = "A" ;
Steps:
Skip statements in for or while loops and go to the next iteration
Continue statement ( can be used to
skip loop iteration, continue process the
next iteration of a for or while
loop.
E.g
Skip a value and continue the iteration
int main()
{
for (int i = 1; i
< 10; i++) {
// When i reaches 5 it automatically skip the 5 and
continue to next iteration//
if (i == 5)
continue;
else
cout << i
<< " ";
}
return 0;
}
The output will be print : 1,2,3,4,6,7,8,9 except 5
Define Linux Operating System