FEATURES OF C LANGUAGE

 

Features of C language

1. Simple
C language is simple and easy to learn. The syntax of C is simple and gives flexibility to the programmer with its wide variety of in-built functions and data types.

2. Portable
C is a machine independent language, which means a C program written one machine can run on another machine without requiring a code change.

3. Fast
C is a compiler based language. C is power packed with several features but it is not bloated like some other programming languages, it supports only useful features which makes the compilation of C file fast.

4. Extensible
C program supports code modifications and addition of new code to the already existing programs, this makes C language extensible. It becomes easier to add new functionalities to the existing C programs.

5. Rich libraries:
C libraries are full of useful in-built functions. These functions can be used frequently to perform some repeated tasks. As a C programmer, you won’t need to write same code again and again for some trivial repeated tasks, rather you can use in-built functions to perform the task.

6. Dynamic memory allocation
Dynamic memory allocation means, optimizing and allocating the memory during runtime. C language supports dynamic memory allocation, which supports function like free() to free the un-utilized memory space and other memory management functions such as malloc(), calloc() etc.

7. Reusability
Function is a block of code that is used to perform a specific task. Along with the in-built predefined functions, C language allows you to create you own functions that you can create for a reoccurring tasks. This improves the reusability of the code and avoids the unnecessary writing of the same code again and again.

8. Mid level programming language
C language provides the benefits of high level and low-level languages both. C allows manipulation of hardware just like low level language and allows high user end functionalities like high-level languages.

9. Supports pointers
C language supports pointers. The pointer in C allows you to directly interact with the memory.

10. Recursion
C supports recursion. Recursion means a function calls itself. Recursion provides the features of code reusability and backtracking.

Comments

Popular posts from this blog

VARIABLES IN C LANGUAGE

Program to find the average of two numbers

Program to add two integer numbers