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
What would happen?
What would happen?
Nov 18, 2013 at 5:14pm UTC
stuckinthehouse
(29)
What would happen if you put for loop this way?
for(; ;)
will it create an infinite loop?
Nov 18, 2013 at 5:23pm UTC
Chervil
(7320)
Yes, it creates an infinite loop.
It is equivalent to (but less legible in my opinion) this:
while
(
true
)
Topic archived. No new replies allowed.