Hello.
I have jumped into this C stuff and I'm trying to grasp
an understanding of structures and pointers and all that fun.
I'm on my second month of this stuff. I feel I'm moving very slow but
I'm not giving up. At any rate hello and it's nice to meet everyone.
I couldn't find help on the FAQ's and if it's there then I reckon it still didn't click.
My question is:
why doesn't this work: (should be enough code for the discussion here)
struct woman {
int Height;
int tits;
char hair[7];
};
struct woman wife = {
1,
8,
"black"
};
wife.hair ="green";
structs_learn.c:39: error: incompatible types in assignment
I can access and change types int but not types of char.
ty.