Hacker News new | ask | show | jobs
by Eiwatah4 4548 days ago
You don't have to simulate multidimensional arrays in C. It's just easier than wrapping your head around the weird syntax required to pass them around: http://pastebin.com/JTjQMfxr
1 comments

That's all well and good until the dimensions of the array are dynamic. Which they are in all real code.
C has variable sized arrays. http://pastebin.com/BEgDNAhu That's no longer backward-compatible to C89, though.
I was not aware of that. Is this a GCC extension, or is it part of C99 and/or C11?