只能每个元素分别判断了。for ( int i=0;i<5;i++ ){if( a[i] != b[i] )break;}if(i<5)printf("不相等\n");elseprintf("相等\n"); 追问: 把程序写完整一点菜鸟一个 追答:#include "stdio.h" int main() { int a[5]={1,2,3,6,8}; int b[5]={1,2,3,8,9}; for ( int ...
只能每个元素分别判断了。for ( int i=0;i<5;i++ ){ if( a[i] != b[i] )break;} if(i<5)printf("不相等\n");else printf("相等\n");