Data type introduction

So, data types well they are in the most common words are different types of values like integers, characters, float(decimal), double(it basically double any data type it attaches to e.g. double int)

They allocate memory space for different types of data in memory like for character it will assign one-bit memory similarly for integers it allocates memory 1,2,4...so you get the point.


Different types of data types

  1. Numeric: It includes all types of numbers
  2. Integer: It stores numbers without the fraction.
  3. Float: It represents a number with a decimal value.
  4. Character: It stores only one character.
  5. String: Combination of two or more characters.
  6. Logical: Operating on only two values 0 or 1.


Comments

Popular posts from this blog

C++ programming toll plaza simulation program

C++ program to give you hug(pun intended)