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