Question: #include bool compareArrays ( int x 1 [ 2 ] [ 3 ] , int x 2 [ 2 ] [ 3 ] ) {

#include
bool compareArrays(int x1[2][3], int x2[2][3]){
for (int i =0; i <2; i++){
for (int j =0; j <3; j++){
if (x1[i][j]<= x2[i][j]){
return false;
}
}
}
return true;
}
int main(){
int x1[2][3]={{1,2,3},{4,5,6}}; // Replace these values with your own arrays
int x2[2][3]={{0,1,2},{3,4,5}}; // Replace these values with your own arrays
bool x1Rules = compareArrays(x1, x2);
std::cout <<"x1Rules: "<< std::boolalpha << x1Rules << std::endl;
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!