Arbitrary length multi-dimensional arrays
Newbie question here. It's been a while since I've done C programming,
and I hit a wall last night.
Let's say I have a three dimensional array, like so:
I also have a number of other three dimensional arrays, generated with
int p =
a code generating script. The size of each dimension varies with each
one. Some are , some are , etc...
How would I declare a variable that could hold any of these
3-dimensional arrays? I'm tripping over the pointer syntax.
I'd like to be able to do something like:
int ***val = p; //The variable p from the last example.
I'm pretty sure that ***val is the wrong way to go about it.
Thanks for your help!