主页
C 语言
C NULL 值
demo_null2
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { int *numbers = (int*) malloc(100000000000000 * sizeof(int)); if (numbers == NULL) { printf("Memory allocation failed.\n"); return 1; } printf("Memory allocation successful!\n"); free(numbers); numbers = NULL; return 0; }
Memory allocation failed.