logoalt Hacker News

fatty_patty89yesterday at 10:17 PM2 repliesview on HN

there's no array type in c


Replies

colejohnson66yesterday at 10:28 PM

Yes it does. It just decays to a pointer at the slightest touch.

show 1 reply
ocreattoday at 10:11 AM

There is a big difference between:

struct A { int size; char data[]; }

struct B { int size; char *data; }