Help with 2d Int Arrays
Need some help guys; just started working with C and I'm having some issues with arrays. I'm working on making a program to solve the 8-queens problem. I have a function that has a 2d int array passed to it that it uses to calculate elimination values. I want to store these elimination values in another 2d array to be used later. I can't declare an array as a return type like I could in java. So, how would I go about exporting this array?
Could I pass another parameter, like a pointer to another array outside the function? I don't know much about pointers at all (our professor has just started on the subject).
you can pass the second array as a parameter the same way you pass the first array
Originally Posted by Voondebah
Wow, I feel silly now. I think I've been just working on the problem too long and overlooked that possibility. Thanks so much, I feel rejuvenated!