Script:
#include <stdio.h>
#include <stdlib.h>
char inn[100];
int main()
{
inn='EEE';
if(strcmp(inn,"EEE") == 0){
printf("ok");
}
}
Compile Error:
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';
What is the solution ?
Should I change my top declaration or should I do something differently elsewhere ?