cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to detect
How to detect
Feb 12, 2015 at 2:49pm UTC
BillyBob
(63)
How we can detect before executing program, that loop would be infinite or not ?
Thanks.
Feb 12, 2015 at 3:58pm UTC
closed account (
SECMoG1T
)
infinite loops are run-time errors.
Feb 12, 2015 at 4:07pm UTC
MiiNiPaa
(8886)
This is undecidable problem.
http://en.wikipedia.org/wiki/Halting_problem
Feb 12, 2015 at 5:39pm UTC
tipaye
(535)
infinite loops are not necessarily run-time errors. In fact, most useful software programs employ some sort of infinite loop - most operating systems, most bare-metal embedded systems, tcp server applications, politicians, ...
Topic archived. No new replies allowed.