Thursday, January 21, 2010

What's the Difference between C sharp ( C# ) and C++?( Diffrence between C++ and C sharp)


Definition of C# by Microsoft:

C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. C# (pronounced C sharp) is firmly planted in the C and C++ family tree of languages, and will immediately be familiar to C and C++ programmers. C# aims to combine the high productivity of Visual Basic and the raw power of C++.

C++ is a general-purpose programming language with high-level and low-level capabilities. It is a statically typed, free-form, multi-paradigm, usually compiled language supporting procedural programming, data abstraction, object-oriented programming, and generic programming.

C# was developed by Microsoft, and programs written on C sharp uses .Net framework to run. While compiled C++ code can run as a standalone executable as byte-code.
 
C# is a C++ that includes some Visual Basic and Java features. It simplifies the creation of GUI (Graphical User Interface) programs and windows-based menus (items that require more effort and expertise to create with the standard C++ programming).

C++ is the standard version of the language. It is platform independent (C++ programs will execute on Windows, Unix, Linux, and any other operating system) while C# programs are designed to execute only on Microsoft Windows operating system, as Visual Basic is a Windows-only product.

If you want to do programming on linux or Unix systems then C++ is a better choice while if you want to do the programming on entirely windows based systems then C# is the better choice as it takes advantage of the existing Windows APIs (Application Program Interface) so that you don't need to create Windows libraries from scratch.

C# can create console applications, Windows applications, and ASP.NET websites.

Reference: C-Sharp Corner: Difference between C#(C Sharp) and C++

No comments:

Post a Comment