9 replies
by lastorck
i think u can check it in your compiler's documentations. it wouldn't strictly limited. but i think it isn't a good idea to define too much nested structures - maybe better declare them separately and use typed variables of structures as nested elements of other structures (recursivetly ofcourse)
Regards
by sankar_2209
by basilisk
I did a program once with 6 or 7 levels of nested structs (done with typedefs to keep the names of the parts meaningful) and my gnu compiler didn't complain. Trying to reference any atomic value in that struct was a nightmare.
I suspect that youwill become unable to keep track of the nesting mentally long before your compiler has problems. Which is another argument for moving to a OO approach and using well defined and tested classes, with lots of useful and meaningfully-named member functions.
by sankar_2209
by cedric king
by sankar_2209
by ruler
by sankar_2209
by sankar_2209
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending