#include<stdio.h>
#include <stdlib.h>
void print(int *matriz, int lin, int col) {
for(int i = 0; i < lin; i++) {
for(int j = 0; j < col; j++) {
printf("%d, ", *(matriz
+ i
* col
+ j
)); }
}
}
int main() {
int * a
= malloc(9 * sizeof(int)); print(a, 3, 3);
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGUgPHN0ZGxpYi5oPgp2b2lkIHByaW50KGludCAqbWF0cml6LCBpbnQgbGluLCBpbnQgY29sKSB7CiAgICBmb3IoaW50IGkgPSAwOyBpIDwgbGluOyBpKyspIHsKICAgICAgICBmb3IoaW50IGogPSAwOyBqIDwgY29sOyBqKyspIHsKICAgICAgICAgICAgcHJpbnRmKCIlZCwgIiwgKihtYXRyaXogKyBpICogY29sICsgaikpOwogICAgICAgIH0KICAgIH0KfQoKaW50IG1haW4oKSB7CiAgICBpbnQgKiBhID0gbWFsbG9jKDkgKiBzaXplb2YoaW50KSk7CiAgICBwcmludChhLCAzLCAzKTsKfQ==
0, 0, 0, 0, 0, 0, 0, 0, 0,