不等价.一个是5,一个是6."china" =={'c','h','i','n','a','\0'}
怎么会不对呢,上机就知道,您上了吗
会出现乱码,用WIN-TC#include<stdio.h>int main(){ char c[]={'c','h','i','n','a'}; printf("%s\n",c); getch(); return 0;}