Hey guys , I am trying to self-study C programming during this summer.
I was really confused about this 2 dimensional array thing.
Hope that I could get some helps here.
I know how to create one with malloc, and how to access them.(with x[i][j])
but , the hardest part for me is how to pass it to a function.
Let us say that My program will malloc a 2 dimensional array based on the input(row,col) given by the user.
I wish to pass this array to a function and to do something with it.
What is the best way to do it?
Thanks ahead for any replies.