Nesting

This is a discussion on Nesting within the C Programming forums, part of the General Programming Boards category; Hi All, switch(i) { case 0: statement; break; case 1: statement; switch(y) { case y1: statement; break; } break; } ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    17

    Lightbulb Nesting

    Hi All,

    switch(i)
    {
    case 0: statement;
    break;
    case 1: statement;
    switch(y)
    {
    case y1: statement; break;
    }
    break;
    }

    1.) If above is possible what is the MAX level of nesting ?

    cool

  2. #2
    Registered User Cela's Avatar
    Join Date
    Jan 2003
    Posts
    362
    >>1.) If above is possible what is the MAX level of nesting ?
    At least 127, maybe more if the implementation supports it. But no one in their right mind would get anywhere close to that lower bound. And those in their left mind would get lynched in a heartbeat :-)
    *Cela*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mice Are Nesting!!!
    By Dagger in forum C++ Programming
    Replies: 4
    Last Post: 02-05-2006, 10:59 PM
  2. Nesting switchstatments
    By Da-Nuka in forum C++ Programming
    Replies: 5
    Last Post: 03-04-2005, 02:05 PM
  3. Nesting Parentheses
    By XZSNPP in forum C++ Programming
    Replies: 6
    Last Post: 01-18-2003, 09:01 PM
  4. DLLs <- sound files, and nesting.
    By sean in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2002, 04:13 PM
  5. #include nesting level?
    By Josho in forum C++ Programming
    Replies: 2
    Last Post: 09-23-2001, 12:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21