By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,220 Members | 1,723 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,220 IT Pros & Developers. It's quick & easy.

Nested declarations

P: n/a
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 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Sep 15 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.