Re: Printing a 2D array in a C program

Pedro Alves
2016-03-04T19:16:24Z

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