Friday, February 11, 2011

Let We C Session-2 [Types of Data Structures]

Types of Data Structures:
  • Fundamental Data types.
  • Derived Data types.
Fundamental Data types:                            
  •   Data types at a lowest level.
  •   Base for Other data types.
  •   Machine depend storage requirement. 
char                    deaf

int                       22223


Float                   324.242

Derived Data types:
  
Little same as function data type.

Declaration done at beginning.
  •   short int 
  •   long int  
  •   double int   
  •   define data                                                                                                                

 short => data type

 long => variables


Strings:


Syntax
 
char(variable) [(number of bytes)];

Example:
char string  10;       




Next Session is Structures.........

No comments:

Post a Comment