0
will running an infinite loop for longer time will exhaust the system's memory or it will keep running without affecting the memory?
3 Answers
0
.
0
It will exhaust the memory even may lead the system to crush
So does openinig a file without closing it again
0
It depends.
i=1
while i > 0
i+=10
This will crash because of out of memory.
while i>0
i=100
Will not.