Difference between C and C# - GeeksforGeeks (2024)

Improve

C language: C language is a middle programming language that was developed at Bell research lab in 1972 by Dennis Ritchie. C language combines the properties of low level and high-level language. therefore its thought-about a middle programming Language. C may be a high-level classical kind programming language that permits you to develop computer code and moveable applications. There are 32 total keywords used in the C language. It’s a perfect language for developing computer code systems. C# language: C# is a object-oriented programming language, is pronounced as C-Sharp. This language was developed to compete with Java, by Microsoft under the leadership of Anders Hejlsberg and his team. There are 86 total keywords used in the C# language. In c#, pointers are used only in unsafe mode. Difference between C and C# :

S.NOCC#
1.C language supports procedural programming.Whereas C# supports object oriented programming.
2.C language supports pointers.Whereas in C#, pointers are used only in unsafe mode.
3.In C language, garbage collection is not.While in C#, garbage collection is managed by Common Language Runtime (CLR).
4.C language can be executed cross-platform.Whereas .NET Framework is required to execute C# language.
5.By using C language we can achieve low level of abstraction.Whereas by using the C# we can achieve a high degree of abstraction.
6.C language is more on functions.While C# is more on design.
7.C language gives top notch performance.While C# gives standard performance.
8.There are 32 total keywords used in the C language.While a total of 86 keywords are used in C#.
9.C language is mainly used in commercial industries and engineering.Whereas C# is used for software formation and other networking related objective.

Last Updated : 30 Nov, 2022

Like Article

Save Article

Share your thoughts in the comments

Please Login to comment...

Difference between C and C# - GeeksforGeeks (2024)
Top Articles
Latest Posts
Article information

Author: Reed Wilderman

Last Updated:

Views: 6392

Rating: 4.1 / 5 (52 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.