Difference between C++ and C#

by 8 replies
10
What is diff between C and C#?
Give me your point of view about this?
#programming #difference
  • I have little knowledge about programming languages
    But C# advanced than C and C++.
    Like some short way in c#
  • That question is so broad it will require an answer way bigger than anyone has time to write here.

    The biggest difference is that c# is a managed language and hence some what machine independent.
  • C# is a higher level language than C++, it's easier to learn as it provide many features like automatic memory management(garbage collection) and all the tools of the .NET framework. but generally speaking. programs written by C# can only work on Windows(though by simulation it can work on other systems).
  • Basically C++ is much older and much more widely used programming language. It's also very effective in terms of speed so it's used in nearly everywhere from games to operating systems. For example Windows OS, Mozzilla Firefox, Winamp and Photoshop are written mostly in C++.

    Quote from somewhere I don't remember:

    "C++ was designed to be a low-level platform-neutral object-oriented programming language. C# was designed to be a somewhat higher-level component-oriented language"

    For example C# compiler in Visual Studio (an IDE for C#, VB.Net etc. development by Microsoft) is developed with C++.
  • Here is how I would prioritize them:

    C++ = WIN32
    C = Linux
  • C# is microsoft thing, used in windows/xbox programming
    C,C++ are world standards, commonly used in programming on all kind of platforms
  • Following are difference between c++ and c#

Next Topics on Trending Feed