Is it possible in C to make an empty 2D array with known number of rows and columns in the main.
e.g. int my_array[10][10]
then pass it in a function (empty):
my_function(r,c,my_array)
in order to perform some operations and full the 2D array and return it full in the main?
If yes: I have to malloc-ed? dynamically right? and "free" in main? I use void or return my_array? I have found some examples in the internet and I have been confused. Is there any example to have as guide?