Computer Science, asked by Benzersiz0, 2 months ago

The update expression in a For loop can decrement the loop variable. T/F​

Answers

Answered by jatinkhurana9
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