Introduction

C is a popular general purpose programming language. C language has been designed by the Dennis Ritchie at Bell Laboratories in 1972.C language was originally created to design and support the UNIX operating system.C language is a middle level computer language. It combines the features of high level language (ADA, BASIC and COBOL etc) and low level language (assembly language). Eitworld.com provides the Basic C Programming Tutorials With Examples for freshers.

This is C Programming language tutorial for beginners, you are able to learn c programming with examples.

C language is used to develop a simple program and as well as complex Application and System software also. Some of the applications of C language are operating system, utility software, modern programs, various kinds of simulators, compilers, interpreter and assembler, network drivers, text editors and print spoolers, manipulate any type of math equations etc.

We know that functions are the backbone of any programming language. C programming provides two kinds of function: system defined or user defined functions which are used for reusability purpose. Eitworld provides the Basic C Programming Tutorials For Freshers; easy learning to make the concept more powerful in C programming.

what is c ?

  • C is a popular general purpose programming language.
  • C language has been designed by the Dennis Ritchie at Bell Laboratories in 1972.
  • C language was originally created to design and support the UNIX operating system.
  • C language is a middle level computer language. It combines the features of high level language (ADA, BASIC and COBOL etc) and low level language (assembly language).
  • C is a structured language so code can be written and read much easier.
  • We can write both application software and system software by using C Language.
  • There are 32 keywords in C language.
  • In 1983 the American National Standards Institute(ANSI) formed a committee to establish a standard definition called ANSI standard C.

c language features

  • It is simple language.
  • It is reliable.
  • It provides flexibility to programmers.
  • It provides portability facility means it is portable language.
  • It is interactive language.
  • It provides modular programming.
  • This language is powerful and efficient.
  • It is platform dependent language.
  • It is syntax based language.
  • It provides modular programming.
  • It is middle level language.
  • It provides efficient use of pointers.
  • It is structure oriented programming language.

application of c language

C language is used to develop a simple program and as well as complex Application and System software also. Some of the applications of C language are given below:

  • Using C, we can develop operating system.
  • Using C, we can develop utility software.
  • Using C, we can develop modern programs.
  • Using C, we can develop various kinds of simulators.
  • Using C, we can develop compilers, interpreter and assembler.
  • Using C, we can develop network drivers.
  • Using C, we can develop text editors and print spoolers.
  • We can develop graphics using C.
  • We can manipulate any type of math equations.

Overview of Compiler and Interpreters

Before talking about the Compiler and Interpreter we have to know some important points as given below:

  • A program is a set of instructions used to perform a particular task.
  • These programs are written in assembly language or high level language (English words),this written program is called as source program which cannot be understood by the computer. Computer can only understand the instructions available in the form of machine language as '0' and '1'.
  • The source program is to be converted to the machine language that is known as object program.It creates an object file.
  • Source program is converted into object program with the help of interpreter or compiler which are explained here in detail:

Compiler

  • Compiler reads the entire source program at one time and converts it into the object program.
  • Compiler provides errors of entire program at once instead of providing them line by line. Only error free program can be executed.
  • Compiler consumes less time for converting source program to object program.
  • Compiler is preferred where length of the source program is very large.

Interpreter

  • Interpreter reads only one line of source program at a time and converts it into the object code.
  • Interpreter provides error line by line.
  • Interpreter consumes more time for converting source program to object program than compiler.