if ( myArray1[0] == myArray2[0] && myArray1[1] == myArray2[1] && myArray1[2] == myArray2[2] )
123456789
bool isdifferent = false; if (array sizes are equal) for (int a = 0; a < (size of arrays); a++){ if (array1[a] != array2[a]){ isdifferent = true; break; } } //now isdifferent tells you whether or not the arrays are the same =]