Re: Incomplete array element type as function argument (C mode)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Beni Falk via Gcc-help:

> void f1(My_struct *a, unsigned n)
> void f2(My_struct a[], unsigned n)

> Why doesn't f2 compile? I was under the impression that there is no
> difference between f1 and f2.

Element types of arrays must be object types.  Incomplete types are
not object types.  This is just another way how array types and
pointer types differ.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux