fork download
  1. #include<stdio.h>
  2. void print(int matriz[][3], int lin, int col) {
  3. for (int i = 0; i < lin; i++) {
  4. for (int j = 0; j < col; j++) printf("%d, ", matriz[i][j]);
  5. }
  6. }
  7.  
  8. int main() {
  9. int a[3][3] = {{0}};
  10. print(a, 3, 3);
  11. }
  12.  
  13. //https://pt.stackoverflow.com/q/87638/101
Success #stdin #stdout 0s 4388KB
stdin
Standard input is empty
stdout
0, 0, 0, 0, 0, 0, 0, 0, 0,