What is the difference between managed and unmanaged code?

  1. Managed code
  • Managed code is managed by CLR.

  • .NET framework is necessary to execute managed code.

  • CLR manages memory management through garbage collection.

       2. Unmanaged code

  • Any code that is not managed by CLR.

  • Independent of .NET framework.

  • Own runtime environment for compilation and execution

           

Posted on by