Why the same function return value is always 1 Beg bosses give directions!
CodePudding user response:
What is your idea? Your function is to determine a and b are equal? Why do a [I]==a [j].
CodePudding user response:
Reference:
bool same (int a [], int [] b, int n)//equal length, are equal in each position of the element { int i; for(i=0; iIf (a [I]! [I]=b) return false; } return true; }