N&gt时填充矩阵[n] [n]的问题; 721(以代码退出的程序:-1073741571)
我在填充矩阵的尺寸更大的721x721时有问题。我试图在在线c编译器上编译此代码,例如 https://wwwww.onlinegdb.com/onlinegdb.com/online_c_compiler 。在此站点上,我的代码在没有任何错误
#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;
}
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;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论