15 ms·
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://p
by Eiwatah4 13y 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 http://pastebin.com/JTjQMfxr
- StefanKarpinski 13y agoThat's all well and good until the dimensions of the array are dynamic. Which they are in all real code.
- Eiwatah4 13y agoC has variable sized arrays. http://pastebin.com/BEgDNAhu http://pastebin.com/BEgDNAhu That's no longer backward-compatible to C89, though.
- StefanKarpinski 13y agoI was not aware of that. Is this a GCC extension, or is it part of C99 and/or C11?