Agile Infoways interview question

What is the difference between managed code and unmanaged code in .NET?