malloc
2018-06-14 本文已影响8人
harukou_ou
#include <stdlib.h>
int *a = (int*)malloc(n*sizeof(int)); // malloc()返回void*
// a为指针,也可以当成数组直接用
#include <stdlib.h>
int *a = (int*)malloc(n*sizeof(int)); // malloc()返回void*
// a为指针,也可以当成数组直接用