I (dynamically) allocated memory for a 2D array. I realize that I must declare the 2nd dimension above the main function, but I do NOT know the value of this second dimension.
void rand_gen(int need_num, int array, int dim);
Later on in the program, the user is asked to enter the dim (dimension) values.
How do I correctly declare this function?
this part of a big sliding numbers assignment (it is big for me!)
i really appreciate any help. Thankx in advance!
may help come to you when you need it