The update expression in a For loop can decrement the loop variable. T/F
Answers
Answered by
1
Answer:
Yes.. Update expression can even decrement the loop variable.
Example:
for(int i=0;i<10;i++)
{
printf("hello");
i= 11;
}
Above loop will run only once (not 10) as i is updated to 11 inside the loop.
Similar questions