I'm running into some problems when I try to pass an array in a function by reference. I get an error saying I can't do that. I'm sure there is a workaround way to do it, but I'm running into problems.
I tried making a pointer to the array (thus the first element in the array) and passing the pointer by reference (function is a void), then reconstruct the array once the function finished, but that didn't work. I need some way to pass the address of the first element of the array.
Just so you know why I need this, I'm writing a program that will randomly generate a 12 by 12 maze. I need to be able to declare the char array in main, pass it into a void function, then print the char array in main. Global variables are out of the question (bad programming).
Thanks for any input!