What we have learnt. • Bitwise operaRons. • Pointers and arrays. • ASCII Characters. Today. • strings. • structs, malloc, 2D array ... ... <看更多>
Search
Search
What we have learnt. • Bitwise operaRons. • Pointers and arrays. • ASCII Characters. Today. • strings. • structs, malloc, 2D array ... ... <看更多>
name); is different because each name is allocated using its own malloc; free(a->array) is only called once; freeArray is only called once; free ... ... <看更多>
typedef struct map map;. /** @brief Allocates and initializes a new array */. array *array_new(void) {. array *tmp = malloc(sizeof(array));. tmp->size = 0;. ... <看更多>