📜  C 和 C# 之间的区别

📅  最后修改于: 2021-09-11 04:07:41             🧑  作者: Mango

C语言:
C 语言是一种中间编程语言,由丹尼斯·里奇于 1972 年在贝尔研究实验室开发。 C语言结合了低级和高级语言的特性。因此它考虑了一种中间编程语言。 C 可能是一种高级经典编程语言,允许您开发计算机代码和可移动应用程序。 C语言总共使用了32个关键字。它是开发计算机代码系统的完美语言。

C#语言:
C# 是一种面向对象的编程语言,发音为C-Sharp 。这种语言是由微软在 Anders Heijlberg 和他的团队的领导下开发的,用于与Java竞争。 C# 语言中总共使用了 86 个关键字。在 c# 中,指针仅在不安全模式下使用。

C 和 C# 的区别:

S.NO C C#
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.

想要从精选的视频和练习题中学习,请查看C 基础到高级C 基础课程