0

Hello,
I am trying to pass a multidimensional array to a function but I keep getting a "expected primary-expression before ']' token" error. I'm using Dev-Cpp and here's my code:

int array[*width][*height];
          if(OpenArray(arrayName, width, height, array[][*height]))

I suppose it could be because there is nothing actually stored in the array? Or am I missing something fairly obvious?

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by Salem
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.