I have the struct:
struct person {
char firstname[];
};
And the method:
void abcde (person* a, char firstchar[]) {
a->firstname = firstchar;
}
The gcc throws this:
incompatible types in assignment of
char*' tochar[0u]'
How to solve this problem? Thanks for help!
struct person * aas the formal parameter? You are missingstruct.