How many times will the condition in the following loop be checked (evaluated)?

for (int i = 0; i < 10; i++)
{
    // body of loop
}
11
  • 10
  • 9
  • 1

Remember the condition will be checked once before the loop starts and then once after every iteration!