![]() |
|
#1
|
|||
|
|||
nested for loopshow many nested for loops can i use in my turbo c complier ( in general any c complier ) i have used 81 nested loops in a programme and complied in turbo c its showing some errors but in in gcc is compling and giving output why it is so eecsatri.blogspot.com
|
|
#2
|
||||
|
||||
Re: nested for loopsWelcome to GID....
Quote:
And if you are nesting 81 loops, you might want to look at a redesign of your program. I can't think of any reason to nest that deep... Also, please note that "some errors" has no meaning and we cannot help with indications of why they might be happening. Read the Guidelines for info needed for us to help you best. __________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
|
#3
|
||||
|
||||
Re: nested for loopsStandard only guarantees minimum limits i.e In C89 it's 15 and in C99 it's 127.
__________________
Gravitation is not responsible for people falling in love. -Albert Einstein |
|
#4
|
|||
|
|||
Re: nested for loopsQuote:
In case anyone is wondering about C++: The C++ standard doesn't impose any minimum, but "recommends" that tne nesting levels of compound statements, iteration control structures and selection control structures be at least 256. (But that's not actually required to qualify a given implementation as compliant.) I gotta go with Walt on this one: Quote:
Regardless of the capabilities of the compiler, I, personally don't see how I would keep track of that level of nesting. (How would I proofread the bloomin' thing? With indentation increasing with each nesting level the code just marches right off of the page.) But that's just me (and, I guess, Walt). Regards, Dave |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Nested For-loops problem | stguisy | CPP / C++ Forum | 4 | 14-Oct-2005 13:18 |
| Nested for loop with function | Tori | CPP / C++ Forum | 11 | 08-Nov-2004 13:02 |
| Help with nested for loops...please. sorry newbie | keperry | CPP / C++ Forum | 14 | 16-Oct-2004 11:25 |
| Help using nested for loops | dontcare | CPP / C++ Forum | 1 | 03-Oct-2004 12:33 |
| looped loops | Marjolein | CPP / C++ Forum | 28 | 06-Jul-2004 08:55 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The