'Problems with filling matrix[n][n] when n > 721 (program exited with code: -1073741571) [duplicate]
I have problem with filling matrix with size bigger 721x721. I have tried to compile this code on online c compilers like https://www.onlinegdb.com/online_c_compiler. On this site my code ran without any errors
#include <stdio.h>
#include <stdlib.h>
int main(int args, char const *argv[])
{
int n = 722;
int matrix[n][n];
int i, j;
for(i = 0; i<n; i++)
for(j = 0; j<n; j++)
matrix[i][j] = 0;
return 0;
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
