Monday 24 October 2011

// // Leave a Comment

Introduction to C Language

C is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system.C is one of the most popular programming languages of all time and there are very few computer architectures for which a C compiler does not exist. C has greatly influenced many other popular programming languages, most notably C++, which began as an extension to C.

Structure of C Program

This is simple example program written in C language and details are described with Line as comments.

      #include        //Header Files  
      void main()           //Main Function
      {                  // Opening Parenthesis
      printf("Hello World.");      //Statement
      }                    // Closing Parenthesis

Here in above program // are used to write comments.
Above program will display Hello World.
# sign is called Pre-processor and used to process files included at first. We included two header files above. Since we have put these files against # (Pre-processos) C Compiler first process Header files and then Program.
Keep visiting, More entries are being written.