For example lets consider the following 2 codes:
for (i = 0; i < 1000; i++)
{
if ( i % 2 != 0)
{
continue;
}
else
{
...
}
}
and
for (i = 0; i < 1000; i++)
{
if (i % 2 == 0)
{
...
}
}
Both will lead to the same result. So which one to use? Which one is better? Are there any significant performance differences between the two? Lets see what you guys see about this. I like the discussions I see here about these things. This may lead to better code writing and better execution times. I posted this question because I did not find the answer to it. I may post another one like this in the future if I did not find an answer to it.
P.S. Whats the purpose of using continue inside a loop when you can go without it?