int* numArray(int n) { int* num = (int*)malloc(n * sizeof(int)); for(int i = 0 ; i < n ; i++) { scanf("%d\n" , num + i); } return num; }
相關文章