Differences between C++ and C#

CsharpProgrammingServer Side Programming

C++ is a statically typed, compiled, general-purpose, case-sensitive, free-form programming language that supports procedural, object-oriented, and generic programming.

C++ is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features.

C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within its .NET initiative led by Anders Hejlsberg.

The following are the differences between C++and C#.

Memory Management

C++ has manual memory management, whereas memory management is handled automatically in C#.

Platforms

C++ can be run on different platforms whereas C# is generally used only on Windows.

Faster code

C++ code works faster than C# code.

Multiple Inheritance

Multiple Inheritance exists in C++, but you can’t achieve it in C#.

raja
Published on 17-Sep-2018 12:03:45
Advertisements