Nested declarations

Discussion in 'C Programming' started by borophyll@gmail.com, Sep 15, 2007.

  1. Guest

    The C standard talks about nested declarators, and th only example of
    nested declarators I can think of are function parameter declarations,
    which are nested within the function declaration. Are there any other
    examples of nested declarations?

    regards,
    B.
    , Sep 15, 2007
    #1
    1. Advertising

  2. Army1987 Guest

    On Sat, 15 Sep 2007 08:02:19 +0000, borophyll wrote:

    > The C standard talks about nested declarators, and th only example of
    > nested declarators I can think of are function parameter declarations,
    > which are nested within the function declaration. Are there any other
    > examples of nested declarations?


    struct foo {
    enum type {Ldouble, Ulong} type;
    union ldouble_or_ulong {
    long double ld;
    unsigned long ul;
    } value;
    }

    int func1(int foo, int bar)
    {
    int func2(int, char**);
    /*...*/
    }
    --
    Army1987 (Replace "NOSPAM" with "email")
    If you're sending e-mail from a Windows machine, turn off Microsoft's
    stupid “Smart Quotes†feature. This is so you'll avoid sprinkling garbage
    characters through your mail. -- Eric S. Raymond and Rick Moen
    Army1987, Sep 15, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Russ Perry Jr
    Replies:
    2
    Views:
    4,129
    Russ Perry Jr
    Aug 20, 2004
  2. Dave
    Replies:
    4
    Views:
    773
    Andrey Tarasevich
    Dec 5, 2003
  3. Chad E. Dollins
    Replies:
    3
    Views:
    654
    Kai-Uwe Bux
    Nov 8, 2005
  4. request@no_spam.com
    Replies:
    5
    Views:
    422
  5. Replies:
    2
    Views:
    475
Loading...

Share This Page