+ 2

Using an infinite loop with a break condition.

Good practice?

14th Mar 2017, 3:35 AM
Zemuldo
Zemuldo - avatar
2 Réponses
+ 1
Any how infinite loop is not a good practice. Wht is the condition for Break (when it executes). Please share your code. Code can be improved.
14th Mar 2017, 3:47 AM
Eranga
Eranga - avatar
0
Second Eranga, Please share the code as sometimes it is ok and required i.e. a main loop in a uC program and other times not, like a when it is blocking and there is no need for it.
14th Mar 2017, 6:04 AM
Elric Hindy
Elric Hindy - avatar