C语言:
C是过程式编程语言。它被设计为使用编译器进行编译。该语言具有少量且固定数量的关键字,例如 if/else、 for 、 while等。我们可以使用多个赋值,这些赋值可以在该语言的一个语句中使用。此处也使用了函数,它可以在不需要时返回可以忽略的值。所有数据都有一个类型,但我们可以隐式转换它。
LISP 语言:
LISP 是第二古老的高级语言。它受 Alonzo Church 的 lambda 演算符号的影响,链表是该语言最重要的数据结构之一。它是第一种将代码结构直接用标准数据结构表示的编程语言。 Lisp 使用了自动垃圾收集的概念。
C语言和LISP语言的区别
COMPARISON FACTORS | C Language | LISP Language |
---|---|---|
Paradigm | C is a procedural programming language. | LISP support both functional and Object Oriented Programming Language. |
Approach | C Program uses top-down approach. | LISP Program uses bottom-up approach. |
Function | In C concept of virtual function is not present. | LISP supports virtual function also known as generic function. |
Extension | C programs are saved in file with extension .c. | LISP programs are saved with extension.lisp. |
Types | C is a middle level language. | LISP is a high level language. |
Object Oriented Features | In C Polymorphism and Inheritance is not possible. | In LISP, it supports both Polymorphism and Inheritance. |
想要从精选的视频和练习题中学习,请查看 C 基础到高级C 基础课程。