Math, asked by rahulchauhan9003, 1 year ago

3. main(){ for(i=0;i++;i<100) printf("hello world "); } a)100 times b)0 times c)infinite loop d)none of the above

Answers

Answered by UnknownDude
0
[0010001111]... Hello User... [1001010101]
Here's your answer...

The answer is a) 100 times

Unless that f in front of printf is intentional. In that case its b) 0 times because ot will show a syntax error.

Infinite loop is impossible as there is a specified condition and the counter moves closer to the condition instead of away from it. When i = 100, the loop will break.

The loop will work from 0-99. That's a 100 numbers, so the loop will work 100 times.

[0110100101]... More questions detected... [010110011110]
//Bot UnknownDude is moving on to more queries
//This is your friendly neighbourhood UnknownDude
Similar questions