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="Irrwahn Grausewitz, post: 1685843"] Theoretically it's of course possible to nest loops the deep you like, but for common programming tasks two or three levels of loop nesting should suffice. If you are exceeding five levels of nesting you should rethink your algorithm and/or code structure. [ I recently wrote a tiny test-suite for an interpreter for a language with C-like syntax, and in the loop-test part I got a serious headache at level nine. ] Note that real-world implementations have limitations on how many levels of loop nesting are possible, but usually the limits are far beyond what a sane programmer would actually use. Regards [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Use of nested loops.
Top