Introduction to C PROGRAMMING LANGUAGE

The C programming language was designed by Dennis Ritchie at Bell Laboratories in the early 1970's.C is a general-purpose language which has been closely associated with the UNIX OS for which it was developed - since the system and most of the programs are written in C.

Characteristics of C languages

1. Direct access to memory layout through pointer manipulation.
2. Concise syntax, small set of keywords
3. Block structured language
4. Some encapsulation of code, via functions
5. Type checking (pretty weak)
6. C is portable(program written for one computer can be run on another computer with little modification)
7. C has an ability to extend itself.

General structure of C program

Pre-processor directives(#include..)
    int main()
    {
       Declaration statements;
       executable statements;
       return 0;
    }

Ex Programs :

#include <stdio.h>
// program prints hello firend
      int main()
      {
        printf ("Hello firend");
        return 0;
      }

Output: Hello firend
Introduction to C PROGRAMMING LANGUAGE Introduction to C PROGRAMMING LANGUAGE Reviewed by Unknown on 08:05 Rating: 5

No comments:

Powered by Blogger.