Is it possible to pass a 2-D array with variable row and column to a function and modify it? Based on the resources on line I got, How to pass a 2D array as a parameter in C and Passing 2-D Array to a Function in C, seemingly I need a fixed row and column array. Thanks,
I just got a possible solution for the question. Based on "passing 2d array as parameter to function in c” Code Answer", the function is defined as void fun(int *arr, int m, int n). But if there are any other sophisticated answers, please share with me. Thanks,
void fun(int *arr, int m, int n)
1.4m articles
1.4m replys
5 comments
57.0k users