|
From: | Henrik Nordstrom |
Subject: | Re: [Tinycc-devel] Mysterious tcc behavior: why does 0.0 takes 12 bytes when NOT long double? |
Date: | Thu, 26 May 2005 10:16:49 +0200 (CEST) |
On Thu, 26 May 2005, Jesse Liley wrote:
thats violating c syntax, you're supposed to declare variables before code inside curvey brackets {}
No, not since C99 came out. Variables may now be declared freely within their scope as long as the variable is declared before it is being used.
Also main is supposed to be declared "int main(int argc, char *argv[])", and actually return a value.
Not stricly required either.. but it is good style to do so. Regards Henrik
[Prev in Thread] | Current Thread | [Next in Thread] |