Code:I have arrays *arr and *aqq. I am trying to find the occurence of similar elements(strings) in the arrays...
this won't work..
for(i=0;i<=count;i++)
{
found=0;
for(j=0;j<=k;j++)
{
if(&arr[j]==&aqq[i])
{
found++;
}
}
}
and also this won't work...
for(i=0;i<=count;i++)
{
found=0;
for(j=0;j<=k;j++)
{
if(strcmp(arr[j],aqq[i])==0)
{
found++;
}
}
}