|
hi Eranga
the count variable should be incremented for every element comparison of the arrays
for eg
int count=0;
al1.(2)=al2.(2)
count++;
the above arrays were equal, so the count variable will be incremented to 1;
then go for next comparison
al1.(3)=al2.(3)
count++;
the count variable will be incremented to 2;
like that the count variable will be go on incrementing if the number of equal comparisons were there
what my problem is :
the count variable is not incrementing for the last comparison of the arrays
can u check in the code i have sent above
__________________
reddy
|