1 2 3 4 5 6 7 8
void CountPositiveElementsIn(int **X, const int K, const int L, int **A) { int i,j; for (i=0;i<K;i++) for(j=0;j<L;j++) if (X[i][j]>0) A[i]++; }