Consider the following code fragment
for(digit = 0; digit < 9; digit++)
{
digit = 2*digit;
digit - -;
}
How many times the loop will be executed?
Answer & ExplanationOption: [A]
for(digit = 0; digit < 9; digit++)
{
digit = 2*digit;
digit - -;
}
How many times the loop will be executed?
Answer & ExplanationOption: [A]