Hello, I'm new in C. I'm getting warning:
warning: format '%s' expects type 'char *', but argument 2 has type 'char (*)[256]'
Here is the code:
typedef struct {
char operation[256];
char value[256];
unsigned long long key;
} Input;
int main()
{
Input input;
while (scanf("%s",&input.operation) !=EOF) {
if (input.operation[0]=='+') {
scanf("%s %llu",&input.value,&input.key);
}
}
return 0;
}
Please help, how to fix this warning.