When to use Managed code & when to use unmanaged code in the application?
please give one example.