Re: C [variable scope]
From: Mike Wahler (mkwahler_at_mkwahler.net)
Date: 12/23/04
- Next message: Chris \( Val \): "Re: #include <all> [Was Re: novice: small annoyance]"
- Previous message: Keith R: "C [variable scope]"
- In reply to: Keith R: "C [variable scope]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 23 Dec 2004 19:03:20 GMT
"Keith R" <keith@nospam> wrote in message
news:Za6dnUNsNrSmjlbcRVnyhg@pipex.net...
> Hello NG
>
> C Language
>
> ...in a scope
> {
> for ( int i=0;i<someValue;++i){
> /* */
> }
>
> for ( int i=0;i<someValue;++i){
> /* */
> }
>
> }
>
> Is my second declaration of i legal?
For C90, neither is legal. For C99, both are.
> Also what is the current C Standard document?
ISO 9899:1999 see www.webstore.ansi.org to get your own copy.
-Mike
- Next message: Chris \( Val \): "Re: #include <all> [Was Re: novice: small annoyance]"
- Previous message: Keith R: "C [variable scope]"
- In reply to: Keith R: "C [variable scope]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|