1
typedef int (*pred_t)(int); int count_if(int* arr,int n,pred_t p){ int c=0; for(int i=0;i<n;i++) if(p(arr[i])) c++; return c; }