RE: Which of the following is not an infinite loop?
It is not c) becoz in while loop comparision takes place that is 0 0(which is true and returns the value 1) so while loop executes and it goes in infinite loop. The correct answer is (D) becoz in while loop condition becomes false with zero(0) and never enters into the loop.
RE: Which of the following is not an infinite loop?A. while(1){ ....}B. for(;;){...}C. x=0; do{ /*x unaltered within the loop*/ .....}while(x = = 0);D. # define TRUE 0 &nbs