Jul 15 2006 11:20 AM 2408 17 i--; }}How many times the loop will get executed"> Consider the following programmain(){unsigned int i=10;while(i>=0) { printf("%u",i) i--; }}How many times the loop will get executed sruthi anoophp_777 Profile Answers by anoophp_777 Questions by anoophp_777 Jul 15th, 2009 Since int is Unsigned, the value of i does not go below zero. Hence the condition in the loop is always true and hence, its an infinite loop. myogeshchavan97 Profile Answers by myogeshchavan97 Questions by myogeshchavan97 Jul 15th, 2009 This is an infinite loop.because the condition in the loop remains true. Answer Question Select Best Answer
Jul 15 2006 11:20 AM 2408 17 i--; }}How many times the loop will get executed"> Consider the following programmain(){unsigned int i=10;while(i>=0) { printf("%u",i) i--; }}How many times the loop will get executed sruthi anoophp_777 Profile Answers by anoophp_777 Questions by anoophp_777 Jul 15th, 2009 Since int is Unsigned, the value of i does not go below zero. Hence the condition in the loop is always true and hence, its an infinite loop. myogeshchavan97 Profile Answers by myogeshchavan97 Questions by myogeshchavan97 Jul 15th, 2009 This is an infinite loop.because the condition in the loop remains true. Answer Question Select Best Answer
anoophp_777 Profile Answers by anoophp_777 Questions by anoophp_777 Jul 15th, 2009 Since int is Unsigned, the value of i does not go below zero. Hence the condition in the loop is always true and hence, its an infinite loop.
myogeshchavan97 Profile Answers by myogeshchavan97 Questions by myogeshchavan97 Jul 15th, 2009 This is an infinite loop.because the condition in the loop remains true.