DATA TYPE in C/C++


 

BUILT IN OF PRIMARY DATA TYPE    

  1. int (Integer)
  2. float(Floating-point)
  3. double (Double Floating-point)
  4. char (Character)
  5. wchar_t (Wide Character)
  6. bool (Boolean)
  7. void (Empty)

Modified Data Types List   

  • signed int - (used for integers)
  • unsigned - int (can only store positive integers)
  • short (used - for small integers (range -32768 to 32767))
  • unsigned short - (used for small positive integers (range 0 to 65,535))
  • Long - (used for large integers)
  • unsigned long - (used for large positive integers )
  • long long - (used for very large integers)
  • unsigned long long - (used for very large positive integers)
  • long double - (used for large floating-point numbers)
  • signed char - (used for characters (guaranteed range -127 to 127))
  • unsigned char - (used for characters (range 0 to 255))


Derived Type Data Type   

  1. Function
  2. Array
  3. Pointers
  4. References


User-Defined Data Type  

  1. Class
  2. Structure
  3. Union
  4. Enumeration
  5. Typedef defined DataType




Comments

Popular posts from this blog

Flow Charts - What Is a Flow Chart? When to Use a Flowchart? Flowchart Symbols & Components