Q. Consider the following code snippet.
What will be the role of the continue keyword in the above code snippet?
Code:
while (n != 0)
{
if (n == 1)
continue;
else
n++;
}
β
Correct Answer: (D)
The continue keyword skips the rest of the statements in that iteration