自定义函数实现整数数组前n个元素的输出函数原型为void arr prt(int * p int n)
void arr_prt(int *p,int n) { for(int i=0;i<n;i++) printf("%d ",p[i]); }