A struct is a way to define a type that consists of one or more other types pasted together . Here’s a typical struct definition: Toggle line numbers 1 struct string { 2 int length; 3 char *data; 4 };
What is a struct string?
A struct is a way to define a type that consists of one or more other types pasted together . Here’s a typical struct definition: Toggle line numbers 1 struct string { 2 int length; 3 char *data; 4 };