The Wayback Machine - https://web.archive.org/web/20240717024801/https://www.geeksforgeeks.org/difference-between-c-language-and-lisp-language/
Open In App

Difference Between C Language and LISP Language

Last Updated : 23 Dec, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

C Language: C is the procedural Programming language. It was designed to be compiled using a compiler. The Language has small and fixed number of keywords like if/else, for, while,.. etc. We can use more than one assignment that may be used in one statement in this language. Functions are also used here, it can return values that can be ignored, when not needed. All data has a type but we can convert it implicitly.

 LISP Language: LISP is the second oldest high-level language. It is influenced by the notation of Alonzo Church’s lambda calculus Linked list is one of the most important data structure of this language. It was the first programming language where the structure of code is represented directly in the standard data structure. Lisp used the concept of automatic garbage collection.

Difference Between C Language and LISP Language

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.
Applications  C is commonly used for systems programming, embedded systems, and low-level hardware programming,   Lisp is often used in artificial intelligence, symbolic computing, and language processing.
Memory Management  In C, the programmer is responsible for managing memory allocation and deallocation Lisp, memory management is handled automatically by the language’s garbage collector.

Let’s see the difference in the sytnax structure of C and Lisp:

The following code is in C language to print the sum of two numbers.

C




#include <stdio.h>
 
// main function declaration and definition
int main()
{
    int x = 10;
    int y = 5;
    int sum = x + y;
 
    printf("The sum of %d and %d is %d", x, y, sum);
 
    return 0;
}


Output

The sum of 10 and 5 is 15

The above code can be written in Lisp as shown:

Lisp




; similar code in lisp
(defun main ()
  (let ((x 10)
        (y 5))
    (print (+ x y))))
 
(main)


Output

15


Similar Reads

LUA vs LISP Programming Language
LUA is an open source Programming language created by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes in 1993. It is implemented in the C Programming language. Its main use case is in Large server systems and mobile applications. It helps in automatic memory management and handling strings very efficiently. Some Features of L
2 min read
Lisp vs Erlang Programming Language
Lisp is the High-Level Programming Language invented by John McCarthy in 1958 at the Massachusetts Institute of Technology (MIT). Lisp is the second-oldest high-level programming language in widespread use today. The name Lisp is derived from ‘List Processing Language’. Lisp programs deal with source code as a data structure. It is suitable for Art
2 min read
Difference Between Machine Language and Assembly Language
Machine language is the low level programming language. Machine language can only be represented by 0s and 1s. In earlier when we have to create a picture or show data on the screen of the computer then it is very difficult to draw using only binary digits(0s and 1s). For example: To write 120 in the computer system its representation is 1111000. S
2 min read
Difference Between Assembly Language And Machine Language
Machine language is the low-level programming language. It can only be represented by 0s and 1s. Earlier when we have to create pictures or show data on the screen of the computer then it is very difficult to draw using only binary digits(0s and 1s).For example: To write 120 in the computer system its representation is 1111000. So it is very diffic
2 min read
Difference between Hardware Description Language and Software Language
1. Hardware description language : It describes hardware in textual form. It describes hardware behavior and their structure. It is description of circuits that can be created at different levels of description according to language syntax and semantics or at level of abstraction from basic logic gates. It is stimulation of designs before fabricati
2 min read
Difference between assembly language and high level language
1. Assembly level language :It is a low-level language that allows users to write a program using alphanumeric mnemonic codes, instead of numeric code for a set of instructions examples of large assembly language programs from this time are IBM PC DOS.2. High-level language :It is a machine-independent language. It enables a user to write a program
1 min read
Difference between Java and C language
Here are some of the differences between Java and C language. C is much faster than Java Java is slower than C due to overhead. C Java C was developed by Dennis M. Ritchie between 1969 and 1973.Java was developed by James Gosling in 1995.C is a Procedural Programming Language.Java is Object-Oriented language.C is more procedure-oriented.Java is mor
3 min read
Difference between Python and Lua Programming Language
Python Python is one of the most popular and powerful scripting languages that works nowadays. It is a high-level interpreted programming language. It is a very simple scripting language and very easy to learn as compared to other languages. Python programming language is best for both scripting applications and as standalone programs along with th
3 min read
Difference between Procedural and Non-Procedural language
Procedural Language: In procedural languages, the program code is written as a sequence of instructions. User has to specify "what to do" and also "how to do" (step by step procedure). These instructions are executed in the sequential order. These instructions are written to solve specific problems. Examples of Procedural languages: FORTRAN, COBOL,
2 min read
Difference Between Go and Python Programming Language
Golang is a procedural programming language. It was developed in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson at Google but launched in 2009 as an open-source programming language. Programs are assembled by using packages, for efficient management of dependencies. This language also supports environment adopting patterns alike to dynamic la
2 min read
three90RightbarBannerImg