2 ms·
> Technically correct, Or, as I prefer to say, "correct". > but using the zero length array trick creates clearer, more self documenting code. It's a tradeoff
by _kst_ 10y ago
> Technically correct,
Or, as I prefer to say, "correct".
> but using the zero length array trick creates clearer, more self documenting code. It's a tradeoff between readability and portability.
Clearer compared to which alternative? I find C99-style flexible array members (defined with "[]") quite clear.