Data types in C

 Data Transformation :

  •    Programs transform data from one form to another 
  •    Input data - Output data 
  •    Stimulus - Response
  •    Programming languages store and process data in various ways depending on the         type of the data; consequently, all data read, processed, or written by a program             must have a type
  •    Two distinguishing characteristics of a programming language are the data types it       supports and the operations on those data types 





 Data types:
  •    C is rich in its data type. 
  •    Variety of data type allows programmer to select appropriate data type as per need 
  •    ANSI supports 3 classes of data type 
1.     Primary or fundamental data type 
2.     Derived data type 
3.     User defined data type. 


 Data types in C:


DATA TYPES:-


1.Primitive-

  • Char
  • Int
  • Float
  • Double
  • Void

2.Derivied-

  • Arrey
  • Pointer
  • Function

3.User defined-

  • Enum
  • Structure
  • Union





















Post a Comment

0 Comments