Re: Printing a 2D array in a C program

Pedro Alves <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 03/04/2016 06:59 PM, Jan Kratochvil wrote:
> On Fri, 04 Mar 2016 19:24:19 +0100, Pedro Alves wrote:
>> It's a C gotcha, but I don't think it's a bug.  Essentially, a parameter
>> declared as an array is really treated as a pointer parameter.
> 
> I did not look it up but I expected the standard probably says something like
> that, 

It's in the url/paste I showed.  C99, 6.7.5.3, point 7.

> For example DWARF could have the pointer
> there at its type for sizeof and similar but additionally there could be some
> new GNU attribute for printing the data.

Yeah, might be a good idea.

Thanks,
Pedro Alves
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.