Feature of C Language


C Tutorial

C provides a lots of features that are given below:
  • Simple
  • Machine Independent
  • Middile-level-programming-language
  • Library
  • Structure programming language
  • Fast speed
  • Pointer
  • Function
  • Recurtion
  • Memory Management

Simple

C language is a simple and easy programming language for both learning and programming, therefore most of the computer programming languages follow its syntax and concepts, like C++, Java etc.

Machine Independent

C program can be execute in many machine but it is not a platform-independent.

Mid-level programming language

It has feature of both high and low level languages.
A Low-level language is a language which is understood by machine only. It fast to run. But it is not easy to understand for human.

A High-Level language is that language which can be understood by human.It is machine independent language.
 so that C is called  Mid-level programming language.

Library

A C program is basically a collection of functions that are supported by C library. We can also create our own function and add it to C library.Example::In it printf(),Scanf() etc. function define, that we discus later.

Structure programming language

A complex problem can be broken into smaller blocks so that it can be solved easily so that it is a Structure programming language.

Fast speed

Programs Written in C are efficient and fast. This is due to its variety of data type and powerful operators.

Pointer

C provides the feature of pointers. We can directly interact with the memory by using the pointers.

Function

  1. "A Function is a self-contained block of statements that perform a coherent task of some kind."
  2. "C program can be thought of as a collection of these Function."
  3. We noted earlier,using a Function is something like hiring a person to do a specific job for you.

More detail about function

Recursion

In c,we can call the function within the function.It provides code reusability for every function.

Memory Management

C language provides better memory management using pointer. Therefore, most of the memory related softwares are written in C language like DBMS, Compilers etc. We can allocate dynamic memory at runtime in C using pointer functions like malloc(), calloc(), alloc() etc. and free that memory after compelete their work using free(); function.