adplus-dvertising
frame-decoration

Question

How many times below for loop will be executed ?
#include<stdio.h>
int main()
{
    int i=0;
    for(;;)
        printf("%d",i);
    return 0;
}

a.

0 times

b.

Infinite times

c.

1 times

d.

10 times

Posted under C Programming

Answer: (b).Infinite times

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 below for loop will be executed ?