Message from discussion
Static at function prototype
Received: by 10.66.76.38 with SMTP id h6mr3648767paw.15.1347447321417;
Wed, 12 Sep 2012 03:55:21 -0700 (PDT)
Received: by 10.68.232.230 with SMTP id tr6mr1885307pbc.16.1347447321400; Wed,
12 Sep 2012 03:55:21 -0700 (PDT)
Path: a8ni4572pbd.1!nntp.google.com!4no4357566pbn.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: comp.std.c
Date: Wed, 12 Sep 2012 03:55:21 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=125.22.97.64; posting-account=CmEyNQoAAABrc_pDRlmh-bXlKjYWUsh9
NNTP-Posting-Host: 125.22.97.64
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fb23737b-6df2-44c1-b27e-47e03deaea59@googlegroups.com>
Subject: Static at function prototype
From: umesh.kalap...@gmail.com
Injection-Date: Wed, 12 Sep 2012 10:55:21 +0000
Content-Type: text/plain; charset=ISO-8859-1
Hi All ,
Was going through the C99 standard @ http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf which states that the Function declarators as
direct-declarator ( parameter-type-list )
parameter-list: parameter-declaration
parameter-list , parameter-declaration
parameter-declaration: declaration-specifiers declarator
declaration-specifiers abstract-declarator
direct-declarator [ static type-qualifier-listopt assignment-expression ]
where The optional type qualifiers and the keyword static shall appear only in a declaration of a function parameter with an array type, and then only in the outermost
array type derivation and then for each call to the function, the value of the corresponding actual argument shall provide access to the first element of an array with at least as many elements as specified by the size expression.
for example : int func(array[static int i =100) ;
I'm trying to understand that when as a programmar i can use the function prototype like above ??? Please someone can shed some lights here ??
Thanks