Passing 2D arrays between functions
Im a bit confused how I would do the following:
I have the following functions:
Code:
void bkSub(char arrayIn[])
void blackNWhite()
void cC()
Now this is what the flow I am looking for:
bkSub()
This function after receiving the arrayIn and processing it should pass a new 2D array (float array[height][width]) it created down to blackNWhite()
blackNWhite()
This function now receives that 2D array (float array[height][width]), processes it and passes it down to cC()
cC()
This now receive the 2D array as above and processes it and then passes back to main a structure info.
I am not sure how to do the passing of the 2D array between the functions.
Could someone help?