Data type in computer programming refer to the classification of data used in a program.
The type of data determines the operations that can be performed on the data and how the is stored in memory.
1- Integer: This data types store whole numbers like 1,2,3,4.The size of the integer depends on the programming language being used, it is represented by keyword int.
2- Floating Point: This data types store decimal value like 1,2.2,3.4.The size of the floating point depends on the programming language being used, it is represented by keyword float or double
3- Character: This data types store single character such as a letter digit or symbols. The size of the character depends on the programming language being used, it is represented by keyword char
4- Boolean : This data types store either "true" or "false"value. It is represented by keyword float or double
5- String: This data types store sequence of charector like Shivam, Dehradun.The size of the floating point depends on the programming language being used, it is represented by keyword string
6- Array: This data types store multiple value like [Shivam, prasNn, Fihure].The size of the array depends on the programming language being used, it is represented by keyword array

0 Comments