Ecco qua! Questo dichiara un array di 10 puntatori a struttura mystruct.Come al solito si potrebbe anche allocare dinamicamente con:codice:typedef struct mystruct { int a; ..... }MyStruct; MyStruct* structsArray[10];
codice:MyStruct** structsArray = (MyStruct**)malloc(sizeof(MyStruct*)*10);

Rispondi quotando