📜  C和C#之间的区别

📅  最后修改于: 2021-05-29 14:23:30             🧑  作者: Mango

C语言:
C语言是由Dennis Ritchie于1972年在贝尔研究实验室开发的一种中间编程语言。 C语言结合了低级和高级语言的属性。因此,它想到了一种中间编程语言。 C可能是高级的古典类编程语言,它使您可以开发计算机代码和可移动应用程序。 C语言总共使用32个关键字。这是开发计算机代码系统的理想语言。

C#语言:
C#是一种面向对象的编程语言,发音为C-Sharp 。该语言是由Microsoft在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基础课程》。