Comment puis-je initialiser cette structure imbriquée dans C?Initialisation de la variable struct imbriquée
typedef struct _s0 {
int size;
double * elems;
}StructInner ;
typedef struct _s1 {
StructInner a, b, c, d, e;
long f;
char[16] s;
}StructOuter; StructOuter myvar = {/* what ? */ };
devrait être 'char s [16];', pas 'char [16] s;' – Kcats
Il y a un message similaire [ici] (http://stackoverflow.com/questions/629433/how-to-initialize-nested-structures -in-c) sur SO pour C++. – tranmq