以下哪项是正确的? (A) “ptr=calloc(m,n)”相当于 ptr=malloc(m*n); (B) “ptr=calloc(m,n)”相当于 ptr=malloc(m*n); memset(ptr,0,m*n); (C) “ptr=calloc(m,n)”相当于 ptr=malloc(m); memset(ptr,0,m); (D) “ptr=calloc(m,n)”相当于 ptr=malloc(n); memset(ptr,0,n); 答复: (B) 说明: 看见 calloc()与malloc()的比较 详细信息。
null
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END