Код: Выделить всё
struct my_struct_2
{
int a;
int [5] b;
};
struct my_struct_1
{
int id;
void* arg;
my_struct_2 struct2;
};
extern C void create_struct(void){
my_struct_1 t = {.id = 0, arg = NULL, struct2= {.a=0;.b={0}}}
}
Код: Выделить всё
int main(int argc, char* argv[])...
Но при компиляции в gcc 13.3 у меня произошел сбой, и он подчеркнул именно инициализацию
Код: Выделить всё
my_struct_1 t = {.id = 0, arg = NULL, struct2= {.a=0;.b={0}}}Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/793 ... er-than-13
Мобильная версия