赞
踩
- #include <stdio.h>
- #include <stdlib.h>
- int main ()
- {
- int count = 0;
- while(malloc(1<<20))
- {
- count++;
- }
- printf("%d\n",count);
- return 0;
- }
- #include<stdio.h>
- #include <stdlib.h>
- int main ()
- {
- int count = 0;
- for(count = 0; ; count++)
- {
- if( !malloc(1<<20) )
- {
- break;
- }
- }
- printf("%d\n",count);
- return 0;
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。