N&gt时填充矩阵[n] [n]的问题; 721(以代码退出的程序:-1073741571)

发布于 2025-01-22 14:11:28 字数 621 浏览 2 评论 0原文

我在填充矩阵的尺寸更大的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 errorsenter image description here

#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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文