3 ms·
K&R C could only pass scalars, so structs were rejected while arrays became pointers. ANSI C didn’t dare change the legacy behavior when passing an array, but i
by erik_seaberg 4y ago
K&R C could only pass scalars, so structs were rejected while arrays became pointers. ANSI C didn’t dare change the legacy behavior when passing an array, but if you embed the array in a struct and pass that, it works correctly.
- Arch-TK 4y agoYes, but I don't see how this has anything to do with what I wrote.