Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Eiwatah4
· 12y ago · 0 comments
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
Comments
[–]
StefanKarpinski
12y ago
That's all well and good until the dimensions of the array are dynamic. Which they are in all real code.
[–]
Eiwatah4
OP
12y ago
C has variable sized arrays.
http://pastebin.com/BEgDNAhu
That's no longer backward-compatible to C89, though.
[–]
StefanKarpinski
12y ago
I was not aware of that. Is this a GCC extension, or is it part of C99 and/or C11?