Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Use of nested loops.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Keith Thompson, post: 1685863"] Quick answer: Yes. The standard requires an implementation to handle at least 127 nesting levels of blocks (the actual statement is more complicated than that, but the details aren't important for this discussion). Realistically, most compilers don't use fixed-size data structures internally, so the number of nested loops is going to be limited by the compiler running out of memory, not by any fixed upper bound. The compiler will let you have far more levels of nested loops than you should. Note that nested loops don't have to be physically nested. It's very common for a function to be called from within a loop, and for the function itself to execute a loop, and so on to arbitrarily many levels. Done properly, this can avoid the discombobulation you're quite rightly concerned about. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Use of nested loops.
Top