小编the*_*dev的帖子

进程终止,C 中出现状态 -1073741819 错误

当尝试运行以下程序时:-

#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("HI whats your name? ");
    char name;
    scanf("%s",&name);
    printf("So your name is %s ", name);
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

但是当尝试运行我的代码时,我收到一条错误消息

Process terminated with status -1073741819 (0 minute(s), 11 second(s))
Run Code Online (Sandbox Code Playgroud)

我不知道这个错误意味着什么。该程序是一个非常简单的 C 程序,用于将名称作为输入并向用户打招呼。请告诉我如何修复这个错误。

c

1
推荐指数
1
解决办法
4097
查看次数

标签 统计

c ×1