how to terminate an infinite loop? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to terminate an infinite loop?

How to terminate an infinite loop in this app in the playground area? and in a regular ide format. I saw that for this app there's a time limit for the code to run. Is it just for infinite loops or for any type of code?

20th Aug 2017, 1:56 PM
Gilad Nave
Gilad Nave - avatar
2 Answers
+ 11
The time limit is set to prevent programs from taking up too much server resource, because Code Playground is an online IDE. The time limit will also be reached if your code is sufficiently long / contains too many instructions. This will not happen if you compiled your program on desktop. The program will either run until all instructions are complete, or run indefinitely, given an infinite loop.
20th Aug 2017, 2:08 PM
Hatsy Rei
Hatsy Rei - avatar
0
Awesome, thank you!!
21st Aug 2017, 1:52 PM
Gilad Nave
Gilad Nave - avatar