Basic Data type in c++
  • Data types in c++ can classified as follow:
1.Built-in type
      1. integral type
  • int 
  • char
      2. void
      3.floating type
  • float
  • double
2.User-defined type
  • structure
  • union
  • class
  • enumeration
3.Derived type
  • array
  • function
  • pointer
  • reference

1. Buit-in type
  • c & c++ supports all the buit-in data types.
  • With the exception of void, the basic data types may have different modifiers preceding them to serve the needs of various situations.
  • The modifiers signed , unsigned , long and short may be use with character and integer basic data types.


Following table shows the basic data types and modifiers along with size and range for a 16-bit word machine.






0 Comments