Код: Выделить всё
// create array of person data elements
struct {
unsigned char name[25];
unsigned char age;
unsigned int numberPhone;
} persons [256];
// the 256 people have the same name
memset(person, { "Mohammed", 0, 0 } ,sizeof(persons[0]));
Подробнее здесь: https://stackoverflow.com/questions/791 ... truct-in-c
Мобильная версия