C Programming language

adplus-dvertising
A sample of C Program
    A sample of C Program

      #include <stdio.h>     // Preprocessor
        main ()                // main function
      {                      // opening the brackets
      Printf(“Hello”);
       }                      // close the brackets
.

    Advantages Of C

     1. C is a small , efficient ,powerful and flexible language
     2. C is close to computer H/W (architecture).
     3. C is standardized, making it more portable compare to other languages.
     4. It contains libraries.
     5. Many other languages borrow from Csyntax for ex: Java, java script, perl.
     6. UNIX was written in C.

    Disadvantages of C


     1. C is designed for professional users.
     2. C was not able to automatic checking compare other languages.
     3. C does not support modern concept like OOP’s and multithreading.

    Data Types In C

      Mainly there are two types of data types:

     1. Simple or primivitive.
     2. Compound or structured or derived.

        An primitive data is fundamental unit of information which cannot be broken down further.

      Simple: integers, floats, characters, pointers.
        Derived data is made up of one or more simple data items.

      Compound : arrays, structures, unions.