只能每个元素分别判断了。for ( int i=0;i<5;i++ ){if( a[i] != b[i] )break;}if(i<5)printf("不相等\n");elseprintf("相等\n");