recursive functions, enum, malloc, calloc code example Example: how to use malloc in c ptr = (castType*) malloc(size);