C:动态内存分配
摘要:
如果不对malloc进行强行转换,malloc函数返回的是void类型 如果需要使用malloc函数,必须包含头文件#include <stdlib.h> int * a; scanf("%d",&number); a = (int *)malloc(number * sizeof(int)); 释 阅读全文
posted @ 2019-05-13 14:59 zhaoy_shine 阅读(80) 评论(0) 推荐(0) 编辑