What is The Difference Between Modula-2 And C++, Programming Languages

Modula-2 is a Procedural Programming Language, while C++ is a Compiled Programming Language

What are Procedural Programming Languages

Procedural (imperative) programming implies specifying the steps that the programs should take to reach to an intended state. A procedure is a group of statements that can be referenced through a procedure call. Procedures help in the reuse of code. Procedural programming makes the programs structured and easily traceable for program flow.

What are Compiled Programming Languages

A compiled language is a programming language whose implementations are typically compilers (translators that generate machine code from source code), and not interpreters (step-by-step executors of source code, where no pre-runtime translation takes place). (Wikipedia)

While Modula-2 is a Procedural Programming Language, and C++ is a Compiled Programming Language

Let us now look at the difference between the two:

What is Modula-2 Programming Language – A brief synopsis

It is a general-purpose procedural language created in 1978 by Niklaus Wirth at ETH. It is similar to Pascal and has systems programming and multiprogramming features.

What is C++ Programming Language – A brief synopsis

It consists of a combination of high-level and low-level language features and is hence considered as a middle-level programming language. Bjarne Stroustrup of Bell Labs developed C++ as an extension of the C language. Originally known as ‘C with Classes’, it came to be known as C++ from 1983. It is a multi-paradigm language that supports procedural programming, generic programming, object-oriented programming, and data abstraction.

Sources

A Complete List of Computer Programming Languages

Other Posts

Menu