Warning when using const pointer to fixed size array

Sergei Organov osv@javad.com
Tue Dec 1 16:25:00 GMT 2009


me22 <me22.ca@gmail.com> writes:
> 2009/12/1 Sergei Organov <osv@javad.com>:
>>
>> void boo(const int p[9]);
>>
>> You see? Use the second, simpler declaration, and you are OK.
>>
>
> But then p is a pointer, not an array.

But then in

void foo(const int (* p)[9]);

'p' is also a pointer, not an array.



More information about the Gcc-help mailing list