Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: The order o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 12 Topic 24536 of 28006
Post > Topic >>

Re: The order of block declaration

by santosh <santosh.k83@[EMAIL PROTECTED] > Feb 8, 2008 at 10:18 PM

lovecreatesbea...@[EMAIL PROTECTED]
 wrote:

> On Feb 9, 12:13 am, santosh <santosh....@[EMAIL PROTECTED]
> wrote:
>> lovecreatesbea...@[EMAIL PROTECTED]
 wrote:
>> > Hi!
>>
>> > `declaration' appears before `statement' within local block in the
>> > following diagram. So, does C specify the order of block
>> > declaration just by this? Is there other description about the
>> > order of block declaration? I can't find it in n1124.pdf.
>>
>> > <quote>
>> > (6.8.2) block-item:
>> > declaration
>> > statement
>> > </quote>
>>
>> > Thank you for your time.
>>
>> C99 allows mixed code and declarations. All versions of C before C99
>> mandated that declarations precede code within a block.
> 
> Thank you. I remember that some earlier versions don't allow
> declarations in nested block in a function, do they?

As far as I know, all versions of Standard C allow declarations in
nested blocks.
 




 12 Posts in Topic:
The order of block declaration
"lovecreatesbea...@[  2008-02-08 08:09:56 
Re: The order of block declaration
santosh <santosh.k83@[  2008-02-08 21:43:16 
Re: The order of block declaration
Keith Thompson <kst-u@  2008-02-08 10:01:46 
Re: The order of block declaration
"lovecreatesbea...@[  2008-02-08 08:46:27 
Re: The order of block declaration
santosh <santosh.k83@[  2008-02-08 22:18:37 
Re: The order of block declaration
Army1987 <army1987@[EM  2008-02-08 19:50:35 
Re: The order of block declaration
CJ <spambox1@[EMAIL PR  2008-02-09 07:16:21 
Re: The order of block declaration
Keith Thompson <kst-u@  2008-02-09 09:53:30 
Re: The order of block declaration
"Bill Leary" &l  2008-02-10 08:19:55 
Re: The order of block declaration
Keith Thompson <kst-u@  2008-02-10 12:30:33 
Re: The order of block declaration
"Bill Leary" &l  2008-02-11 09:04:11 
Re: The order of block declaration
CJ <spambox1@[EMAIL PR  2008-02-11 11:00:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 13:02:50 CST 2008.