C
Chad
How do I set the value of a[0] = 3 in the following lines of code?
#include <stdio.h>
struct letter{
char a[0];
};
struct add {
struct letter addit;
};
int main(void) {
struct add test;
return 0;
}
when I try something like test.add=3 or test.addit.a=3, the compiler
gives me the warning
'incompatible types in assignment'.
Thanks in advance
Chad
#include <stdio.h>
struct letter{
char a[0];
};
struct add {
struct letter addit;
};
int main(void) {
struct add test;
return 0;
}
when I try something like test.add=3 or test.addit.a=3, the compiler
gives me the warning
'incompatible types in assignment'.
Thanks in advance
Chad