编辑器
#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.