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