<分区>
脚本:
#include <stdio.h>
#include <stdlib.h>
char inn[100];
int main()
{
inn='EEE';
if(strcmp(inn,"EEE") == 0){
printf("ok");
}
}
编译错误:
gcc test.c -o test
test.c: In function ‘main’:
test.c:9:9: warning: multi-character character constant [-Wmultichar]
inn='EEE';
^
test.c:9:8: error: incompatible types when assigning to type ‘char[100]’ from type ‘int’
inn='EEE';
解决方案是什么?
我应该更改我的最高声明还是应该在其他地方做一些不同的事情?