Struct
- Michael Felix

- Dec 18, 2018
- 1 min read
Struct is a formed data type that contains a collection of variables that are in the same name and are related to one another. In contrast to arrays only in the form of a collection of variables of the same data type, structs can have variables that are of the same or different data types, can even store variables that have the type of data array or struct itself. Variables that are members of a struct are called struct elements.
struct human {
char name[100];
int age;
char address;
char gender;
};
Comments