Wipro interview question

Memory management in C