Differences between C and C#


C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC PDP-11 computer in 1972.

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#.

Language

C language is a structured programming language, whereas C# is an object-orinted language.

Memory Management

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

Garbage Collection

C do not have a garbage collector whereas C# has CLR for garbage collection.

Platforms

C program can be run on different platforms whereas C# is generally used only on Windows and needs the .NET framework.

Updated on: 30-Jul-2019

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements