English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

Ruchira's answer isn't correct. If the condtion instantly evaluates to false, then no output should be produced --which is probably why the poster asked this question.

What language are you using? I've tried it in VC++, and no output is given. Maybe you're using a language where the condition is checked at the end of the first loop? Hmm, not sure if that would make sense, though. :-)

2006-07-24 19:48:15 · answer #1 · answered by reclame_nl 2 · 0 0

Since the condition evaluates to 0 (false) the loop body shouldn't be executed. Hence I would believe that no output should be generated.

2006-07-25 02:51:40 · answer #2 · answered by swami060 3 · 0 0

In for loop, first is initialization,second is condition and third is increment/decrement operation.In this loop,first I is initialized to zero.and in conditions you have placed zero which stands for false,so it immediately comes out of for loop with i initialized to zero.So the o/p is zero.

2006-07-25 02:43:57 · answer #3 · answered by ruchira 2 · 0 0

fedest.com, questions and answers