Code:I need some help in finding elements in array "aqq" that matchs with those in "arr" My code just prints found as zero for(i=0;i<count;i++) { found=0; for(j=0;j<k;j++) { if(strcmp(arr[j],aqq[i])==0) { found++; } } printf("%s",found); }
Code:I need some help in finding elements in array "aqq" that matchs with those in "arr" My code just prints found as zero for(i=0;i<count;i++) { found=0; for(j=0;j<k;j++) { if(strcmp(arr[j],aqq[i])==0) { found++; } } printf("%s",found); }