History of ‘C’ language (Chapter 1)

0
Hello dear readers , Today is our first tutorial of  ‘C’ language for beginners.I hope you will be happy to learn from it and share this also with your friends.My all the concepts of C are and very precise and on the Topic If you are Learning C from a scratch then it will be a right place for you.Before starting C language we will learn about the history of C language in computer science.You need to read the below topic thoroughly to understand what is C.

http://sudowiki.com/wp-content/uploads/2013/12/c-programming-tutorial-400x230.jpg

History of  ‘C’ Language

‘C’ is a programming language developed at “At&T Bell lab” of U.S.A in “1972” is was designed and written by “DENNIS RITCHIE” . ‘C’ seems to be so popular as it is reliable,simple and easy to use.

Development of ‘C’

            1960         Algol        Developed by international group
      1967         BCPL        Developed by Martin Richard
            1970        B               Developed by Ken Thompson
            1972  traditional C    Developed by Denis Ritchie

Reasons for using ‘C’ language over other Languages/Importance of C

  1. Nobody can Directly learn writing code Higher level language such as C++,C#(C Sharpe),JAVA etc.These languages make use of object oriented languages programming (OPP’s)to organise programs. 
  2. Programs written in C language are efficient and fast .C is highly portable this means that C programs written for one computer can be run on another computer with little or no modifications.
  3. In ‘C’ many standard  functions are available which  can be used for developing programs.

Basic Structure of  ‘C’ language

  • ‘C’ Programs is collections of one or more functions .Every function is a collection of statements and perform some specific  task.

            The general structure of ‘C’ programs is:-    

  1. Comments 
  2. Preprocessor Directives
  3. Global Variables 
  4. Main() Funtions

=> Firstly we will discuss about comments:-

Comments can be placed any where in program and are inclosed between the (/* */)comments are generally used for documentation purpose .we cannot nested comments.

=>Preprocessor Directive 

C program is divided into modules or functions.some functions are written by users and many are stored in library function.Library function.Library Function are grouped in category wise and stored in different files know as Header files.  

                              If we want to access the functions stored in the Library,it is necessary to tell the compiler about the files to be accessed .

                         This is achieved by using the Preprocessor                  directive#include<> as following.

 Preprocessor directive is placed at the beginning of the program.

=>Global variables

There are some variables that are used in more that one functions.Such variables are called Global variables and re declared in the global declaration section.

=>Main funtion

The main function  is the part of every C program C permits different form of main statement Following are allowed.

1.main() 

2.int main()

3.main(void)

4.void main(void)

5.int main(void)

 =>Executing a ‘C’ Program 

1.Creating the program.

2.Compiling the program(checking for errors)

3.Linking the programs with funtion that are needed from the ‘C’ library.

4.Executing the program.

 

Next chapter—->



     

 

LEAVE A REPLY