Yes is the answer. When you want to pass a n dimensional array you pass n stars as pointers and n dimensions. So simple.
Also, I suppose you understood your mistake before... I guess actually it won't even compile. Tip : Compile the code before you post it :)
Enough said and this thread is solved.
files and sockets come to mind also.
Originally Posted by std10093
That is, if you pass an array of arrays as an argument, it is converted to a pointer to an array, not a pointer to a pointer.Quote:
Originally Posted by c99tutorial
Well, you are correct. I had in mind the dynamic allocation of arrays :)