Assigning Values to Strings Arrays and strings are second-class citizens in C; they do not support the assignment operator once it is declared . For example, char c[100]; c = “C programming”; // Error! array type is not assignable.
Can we use string in structure in C?
Assigning Values to Strings Arrays and strings are second-class citizens in C; they do not support the assignment operator once it is declared . For example, char c[100]; c = “C programming”; // Error! array type is not assignable.