A question for fun to you guys

wallbb(53)
Published in
#code
Words
20
Reading
1 min
Listen
Play
9y

Guess the answer of these questions without using compiler, with a reason :-

void main( )
{
int i;
for(i=0;i++;i<100)
printf(”%d”,i);
}
How many times does the loop executes
a) 10 b) 0 c)100 d)Infinite

void main( )
{
int i;
for(i=1;i++;i<100)
printf(”%d”,i);
}
How many times does the loop executes
a) 10 b) 0 c)100 d)Infinite

A question for fun to you guys | Ecency