MathWorks interview question

typecasting in C, dynamic memory allocation, typedef