#include #include typedef struct { int *arrayData; int size; } myArray; myArray *createArray() { myArray *theArray = malloc(sizeof(myArray)); int a = 0; theArray->arrayData = malloc(sizeof(int) * 10); theArray->size = 10; for (a = 0; a < 10; a++) { theArray->arrayData[a] = a; } return theArray; } void cleanUpArray(myArray *theArray) { free(theArray->arrayData); theArray->arrayData = NULL; theArray->size = 0; } int main() { myArray *theArray = NULL; theArray = createArray(); printf("The Array Size: %d\n", theArray->size); cleanUpArray(theArray); return 0; }