Sunday, November 28, 2010

why C is Middle Level Language?

Answer - why C is Middle Level Language
C Programming language is called as Middle Level Language because
(i) it gives or behaves as High Level Language through Functions - gives a modular programming and breakup, increased efficiency for reusability

(ii)it gives access to the low level memory through Pointers. Moreover it does support the Low Level programming i.e, Assembly Language.

As its a combination of these two aspects, its neither a High Level nor a Low level language but a Middle Level Language.
Cheers,
Raghavan alias Saravanan M.

Note: C++ supports pointers and some basic assembly aspects. It is, however, high-level. C is 3rd generation, not due to pointers or functions, as most languages after the 1st generation include some implementation of these, but because it introduced the first (relatively speaking) aspects of object orientation (structs and enums). C++ carried on with this, leading to the "4th", which has become too varried to refer to as such. There is no such thing as a middle-level language. Machine code to BASIC to C to C++ and Java and such, C is definitively on the higher end of the programming specture.

1 comment: