next up previous contents
Next: Some useful hints to Up: Debugging tools Previous: Debugging infinite loops:

Following are the possible causes of an infinite loop:

  1. In do-while loops the condition to break the loop never evaluates to 0.
  2. In while loops the condition to break the loop never evaluates to 0.
  3. In for loops the loop variable is never changed.
  4. In for loops the terminating condition is never reached.



Sushil Prasad
Fri Oct 9 10:28:36 EDT 1998