对于通用搜索函数void*search(void*a,void*k,int n ,int m,int (*compare)(void *,void *)),假如有char*os[]={"dos","win","centos","ubuntu","mac"};char*k ="linux";cmp是一个比较函数,则正确的调用语句是()。
A.search(os,k,5,sizeof(char ),cmp);
B.search(os,k,5,sizeof(char ),cmp());
C.search(os,&k,5,sizeof(char *),cmp);
D.search(os,&k,5,sizeof(char *),cmp());