Hi guys. I am having trouble with checking equality of 2 Arrays which have integers.. At first it sounded easy, but for some unknown reason, I'm finding it hard to code. I don't want to sort out the arrays first..
I know this doesn't work.. Haha.. Can anyone give me some ideas on how to solve this. I thought this was supposed to be easy but I'm struggling!! Thanks!Code:int A[11]={1,7,5,7,4,3,5,2,1,9,8}; int B[11]={9,8,1,2,3,5,1,5,7,7,4}; for(int i=0;i<11;i++) { for(int j=0;j<11;j++) { if (A[i]==B[j]) return true; } }



LinkBack URL
About LinkBacks



I used to be an adventurer like you... then I took an arrow to the knee.