adplus-dvertising
frame-decoration

Question

How many times the loop will execute ?
for(int i = 0 ; i < 10 ; i++)
{
    i  =  i*2;
    i--;
}

a.

10

b.

5

c.

0

d.

Infinite

Posted under C Programming

Answer: (d).Infinite

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How many times the loop will execute ?