Passing a matrix in a function (C)

前端 未结 5 859
梦毁少年i
梦毁少年i 2020-11-30 11:49

I have an issue passing a matrix to a function in C. There is the function I want to create:

void ins (int *matrix, int row, int column);

b

5条回答
  •  难免孤独
    2020-11-30 12:14

    it would also possible to leave the first dimension empty, the same as (*matrix):

    void ins (int matrix[][100], int row, int column);
    

提交回复
热议问题