I need to create a structure whose member is an character array like below:
struct Person{
char name [100];
};
Why the below results in a incompatible types error? And how to fix it?
struct Person john;
john.name = "John";
what is the difference between the assignment above and bellow, which works well:
char str[100] = "this is a string";