Tuesday 3 January 2012

Data Types

A programming language is proposed to help programmer to process certain kinds of data and to provide useful output. The task of data processing is accomplished by executing series of commands called program. A program usually contains different types of data types (integer, float, character etc.) and need to store the values being used in the program. C language is rich of data types. A C programmer has to employ proper data type as per his requirement.


                           
C has different data types for different types of data and can be broadly classified as
1)Primary data types
2)Secondary data types



1)Primary data types are classified as follows
     a)Character
     b)Integer
     c)Float
     d)Double
     e)Void
              Size & range of the predefined data types
   2)Secondary data types are classified as follows       
         a)
Arrays
         b)Pointers
         c)Structure
         d)Union
         e)Enum etc.

No comments:

Post a Comment

host gator coupon