Passage d'une matrice dans une fonction (C)

J'ai un problème de passage d'une matrice à une fonction en C. Il y a la fonction que j'ai créer:

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

mais j'ai remarqué que contrairement aux vecteurs, la matrice de me donner une erreur. Comment puis-je passer ma matrice à une fonction?

EDIT --> voici le code:

//Matrix

#include <stdio.h>
#define SIZE 100

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

int main ()
{
    int mat[SIZE][SIZE];
    int row, col;

    printf("Input rows: ");
    scanf  ("%d", &row);
    printf("Input columns: ");
    scanf  ("%d", &col);

    printf ("Input data: \n");
    ins(mat, row, col);

    printf ("You entered: ");
    print(mat, row, col);

    return 0;
}

void ins (int *matrix, int row, int column);
{
    int i, j;

    for (i = 0; i < row; i++)
    {
        for (j = 0; j < column; j++)
        {
            printf ("Row %d column %d: ", i+1, j+1);
            scanf  ("%d", &matrix[i][j]);
        }
    }
}

void print (int *matrix, int row, int column)
{
    int i;
    int j;

    for(i=0; i<row; i++)
    {
        for(j=0; j<column; j++)
        {
            printf("%d ", matrix[i][j]);
        }
        printf("\n");
    }
}
Combien sont les diemensions de votre matrice? Est-il 1D ou 2D?
Possible en double stackoverflow.com/questions/546860/...

OriginalL'auteur Lc0rE | 2012-07-11