Cummins interview question

differences between c++ and c# , memory allocation and deallocation,