#include <stdio.h> #include <stdlib.h> #include <malloc.h> int main() { int MB = 0; while(malloc(1 << 20)) MB++; //每次分配1MB printf("total: %dMB ", MB); return 0; }
65,211
社区成员
250,514
社区内容
加载中
试试用AI创作助手写篇文章吧