Comparisons between C++ and C#

By | February 25, 2024

1. C++ Programming Language :
C++, as we all know is an extension to C language and was developed by Bjarne stroustrup at bell labs. C++ is an Object Oriented Programming language but is not purely Object Oriented. The language was updated 3 major times in 2011, 2014, and 2017 to C++11, C++14, and C++17. C++ can be found in today’s operating systems, Graphical User Interfaces, and embedded systems.

1. C# Programming Language :
C# is pronounced “C-Sharp”. It is an object-oriented programming language created by Microsoft that runs on the . NET Framework. C# has roots from the C family, and the language is close to other popular languages like C++ and Java. The first version was released in year 2002.



These are various comparisons between C++ and C# :

S.No. C++ C#
1. In 1979, Bjarne Stroustrup, a Danish computer scientist, began work on “C with Classes”, the predecessor to C++ and developed C++ . It is developed by Anders Hejlsberg in 1999.It is pronounced as “C sharp”.It is a general-purpose, object-oriented programming language and , imperative, declarative, functional, generic,and component-oriented programming disciplines.It is provided by Microsoft that run on .Net framework.
2. C++ is a general-purpose object oriented case sensitive language. It is a general-purpose, object-oriented programming language and, imperative, declarative, functional, generic,and component-oriented programming disciplines.
3. C++ is a programming language that runs on all platforms. C# is a programming language that may be seldomly used outside Windows.
4. C++ programming can be used to create console applications. C# programming can be used to create console applications, Windows applications, Mobile applications.
5. In C++ mulitples inheritance is supported,like a single class will inherit multiple class simultaneously. It doesn’t support multiple inheritance,Because In c# does not support multiple inheritance because of ambiguity derived class isn’t inherited multiple classes.Derives class will not identify which methods i inherited.
6. In C++, Memory management is done manually. In C#, memory management is handled automatically.
7. In, C++ Pointer use can be use anywhere in the program. In C#, pointers is used only in unsafe mode.
8. In C++, we manage class on the class and object basis.it also support late binding, early binding, polymorphism etc. C# programming is based on Component and Oops concept.We studied that component architecture is compatible with object oriented.



Please write comments if you find anything incorrect. A gentle request to share this topic on your social media profile.