Difference between C++ and C#.net

Answer Posted / sharmin jose

Navin, what you told is not correct. C++ is platform
dependent where as C# not. MSIL code will run in any
platform if CLR is running.
For e.g., if a CLR is developed for Linux(I think its
there), the code which got compiled in Windows can be run
there.
But for C++, the .exe file created is very much dependent
on the machine. For e.g., the Windows C++ .exe file can
never be run in Linux.

Is This Answer Correct ?    35 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an object pool in .net?

652


Is concurrent queue thread safe?

476


What is application object in c#?

497


Is hashset serializable c#?

486


Value Type and Reference Type Data type in C#?

547






What is the benefit of dependency injection c#?

484


Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?

502


What are the types of comment in c# with examples?

479


What do you mean by for each loop?

479


Why data types are important in c#?

479


What are extender provider components?

473


Is it possible to execute multiple catch block for a single try statement?

582


What are concrete classes?

486


Can a abstract class have a constructor?

464


What are generic types?

495