Path: csiph.com!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Newsgroups: comp.arch.embedded Subject: Re: Dimension of a matrix Date: Sat, 25 Mar 2017 20:08:52 +0100 Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.dfncis.de /HEkVHtwQXVYmyG/0n3HfwwPzWopMTDS6L6hyQwl0jIrcOoAejhiFvgwgo Cancel-Lock: sha1:dgIYvSXaiwwfHpl8mTpNHF6EYi4= User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Xref: csiph.com comp.arch.embedded:26255 Am 25.03.2017 um 19:12 schrieb Les Cargill: > David Brown wrote: > I could not tell you which versions of which compilers support this, > but in some toolchains, it's possible to specify the size of an array > being passed - void p(char x[256])... . All C compilers are actually required to allow you to pass a size like that. It doesn't have any effect whatsoever, though. Any number you put between those [] is really just decoration. These 4 function declarations are totally equivalent: void p(char x[256]); void p(char x[7]); void p(char x[]); void p(char *x);