What is the difference between managed and unmanaged code?
Answer Posted / sudhir singh
MANAGED CODE is what Visual Basic .NET and C# compilers create. It runs on the CLR (Common Language Runtime), which, among other things, offers services like garbage collection, run-time type checking, and reference checking. So, think of it as, "My code is managed by the CLR."
Visual Basic and C# can only produce managed code, so, if you're writing an application in one of those languages you are writing an application managed by the CLR. If you are writing an application in Visual C++ .NET you can produce managed code if you like, but it's optional.
UNMANAGED CODE compiles straight to machine code. So, by that definition all code compiled by traditional C/C++ compilers is 'unmanaged code'. Also, since it compiles to machine code and not an intermediate language it is non-portable.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the two ways to add constraints to a route?
i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?
What are Code Blocks in Views?
What is the meaning of unobtrusive javascript?
What is razor code?
What is domain class model?
What is entity framework used for?
What is a razor file?
what do you mean by table-per-hierarchy?
What is viewdata?
Where are the routing rules defined in an asp.net mvc application?
What are the versions of .net framework?
will there be any issues adding a table without primary keys to a data model?
Mention what is the difference between “ActionResult” and “ViewResult” ?
What is entity sql? : Entity framework