Y
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
StefanKarpinski
4548 days ago
That's all well and good until the dimensions of the array are dynamic. Which they are in all real code.
link
Eiwatah4
4548 days ago
C has variable sized arrays.
http://pastebin.com/BEgDNAhu
That's no longer backward-compatible to C89, though.
link
StefanKarpinski
4547 days ago
I was not aware of that. Is this a GCC extension, or is it part of C99 and/or C11?
link