Is it possible to terminate an infinite loop?
Please let me know if its possible.
Is it possible to terminate an infinite loop?
Please let me know if its possible.
It comes from its name: it doesn't terminate, the user have to interrupt the program-run (in the worst case: power off the computer).
There is no other way but the old Ctrl+Alt+Del (or in Windows use the Task Manager and kill the process). You just have to learn not to code infinite loops without providing a way to exit the loop when some condition is met. You can use the "break" statement to exit the loop early.
Bookmarks