In my opinion (a opinion of a beginner, I have to mark), it depends of the rest of the code
Yes the result is equal, as helios e Zeita said, but the first way is a little more quick than the second.
In the first case, after the condition met, the looping process start from beginning without reading the rest
In the second case, after the condition met, the compiler have to read and interper the code of continue before starting again an other looping process.
The second way, even if quicker, can be the worst in some cases
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
while (1) {
some_thing_and_many_more;
...;
if (condition)
{
many_thing;
}
else
{
another_thing;
}
common_things both if condition met or not
// repeat loop
}
|
The example is not so beautifull, but shows you a case where the use of "continue" is wrong (becose if you use "continue", compiler will not execute "common things" you have to execute also if condition met and inserted at the end of loop)