```c
#include <stdio.h>
#include <string.h>
int* zee_int (void* a,void* b){
return *(int *)a - *(int *)b;
}
void print_int (void* data){
printf("%d,",*(int *)data);
}
void func(void* arr,int len,int size,int (*zee)(void*,void*)){
int i,k;
char temp[size];
for(i=0;i<len;i++){
for(k=0;k<len;k++){
if(zee(arr+k*size,arr+(k+1)*size)<0){
memcpy(temp,arr+(k+1)*size,size);
memcpy(arr+(k+1)*size,arr+k*size,size);
memcpy(arr+k*size,temp,size);
}
}
}
}
void print(void* arr,int len,int size,void(*print_arr)(void*)){
for(int i =0;i<len;i++){
print_arr(arr+i*size);
}
}
int main(){
int a [6] = {1,2,3,4,5};
func(a,6,4,zee_int);
print(a,6,4,print_int);
return 0;
}
有什么问题吗为什么会报错
returning int from a function with return type int * makes pointer from integer without a cast [-Wint-conversion]
passing argument 4 of func from incompatible pointer type [-Wincompatible-pointer-types]