void fun(int *a,int n,int *odd,int *even)
{
for(int i=0;i
if(a[i]%2 ==0)
{
*even += (a[i]);
}
else
{
*odd += (a[i]);
}
}
}
int main()
{
int a[6] ={1,8,2,3,11,6};
int o =0;
int j =0;
fun(a,6,&o,&j);
printf("%d\n",o);
printf("%d\n",j);
return 0;//在此加个断点,或者这句改为system("pause");
}