Features of C
a) Middle Level Language : C is a middle level language as it combines elements of high-level language with the functionals of assembly language.C allows manipulation of bits, bytes and addresses - the basic elements with which the computer functions. Also, C code is very portable, that is software written on one type of computer can be adapted to work on another type. Although C has five basic built-in data types, it is not strongly typed language as compared to high level languages, C permits almost all data type conversions.
It allows direct manipulation of bits, bytes, words, and pointers.
b) Block Structured Language : C is referred as a structured language because it is similar in many ways to other structured languages like ALGOL, Pascal and the likes.
C allows compartmentalisation of code and data. This is a distinguishing feature of any structured language. It refers to the ability of a language to section off and hide all information and instructions necessary to perform a specific task from the rest of the program. Code can be compartmentalised in C using functions or code blocks. Functions are used to define and code separately, special tasks required in a program. This allows programs to be modular. Code block is a logically connected group of program statements that is treated like a unit. A code block is created by placing a sequence of statements between opening and closing curly braces.
c) Code Portability: The code written in c is machine independent which means, there is no change in ‘C’ instructions, when you change the Operating System or Hardware. There is hardly any change required to compile when you move the program from one environment to another.
d) Recursion: A function may call itself again and again.this feature is called as recursion,is supported by C.
a) Middle Level Language : C is a middle level language as it combines elements of high-level language with the functionals of assembly language.C allows manipulation of bits, bytes and addresses - the basic elements with which the computer functions. Also, C code is very portable, that is software written on one type of computer can be adapted to work on another type. Although C has five basic built-in data types, it is not strongly typed language as compared to high level languages, C permits almost all data type conversions.
It allows direct manipulation of bits, bytes, words, and pointers.
b) Block Structured Language : C is referred as a structured language because it is similar in many ways to other structured languages like ALGOL, Pascal and the likes.
C allows compartmentalisation of code and data. This is a distinguishing feature of any structured language. It refers to the ability of a language to section off and hide all information and instructions necessary to perform a specific task from the rest of the program. Code can be compartmentalised in C using functions or code blocks. Functions are used to define and code separately, special tasks required in a program. This allows programs to be modular. Code block is a logically connected group of program statements that is treated like a unit. A code block is created by placing a sequence of statements between opening and closing curly braces.
c) Code Portability: The code written in c is machine independent which means, there is no change in ‘C’ instructions, when you change the Operating System or Hardware. There is hardly any change required to compile when you move the program from one environment to another.
d) Recursion: A function may call itself again and again.this feature is called as recursion,is supported by C.
Comments