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.

Sizin İçin Seçtik  How do you use a struct inside a struct?

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

Sizin İçin Seçtik  What is a struct string?

Leave a Reply

Your email address will not be published. Required fields are marked *