#include <stdio.h>
#include <stdlib.h>
#define linhas 2000
#define colunas 2000
int main() {
int * matriz
= malloc(linhas
* colunas
* sizeof(int)); matriz[0 * linhas + 0] = 0; //coloca um valor na primeira posição da "matriz"
printf("%d", matriz
[0 * linhas
+ 0]); //claro que neste caso se colocasse apenas 0 funcionaria return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2RlZmluZSBsaW5oYXMgMjAwMAojZGVmaW5lIGNvbHVuYXMgMjAwMAoKaW50IG1haW4oKSB7CglpbnQgKiBtYXRyaXogPSBtYWxsb2MobGluaGFzICogY29sdW5hcyAqIHNpemVvZihpbnQpKTsKCW1hdHJpelswICogbGluaGFzICsgMF0gPSAwOyAvL2NvbG9jYSB1bSB2YWxvciBuYSBwcmltZWlyYSBwb3Npw6fDo28gZGEgIm1hdHJpeiIKCXByaW50ZigiJWQiLCBtYXRyaXpbMCAqIGxpbmhhcyArIDBdKTsgLy9jbGFybyBxdWUgbmVzdGUgY2FzbyBzZSBjb2xvY2Fzc2UgYXBlbmFzIDAgZnVuY2lvbmFyaWEKCWZyZWUobWF0cml6KTsKCXJldHVybiAwOwp9