Difference between revisions of "Data type"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(First)
 
(Array data type)
Line 17: Line 17:
 
* Characters
 
* Characters
 
* Alphanumeric [[String (computer science)|strings]]
 
* Alphanumeric [[String (computer science)|strings]]
 +
* [[Array data type|Arrays]]
  
 
== External links ==
 
== External links ==
  
 
* [https://en.wikipedia.org/wiki/Data_type Data type] @ Wikipedia
 
* [https://en.wikipedia.org/wiki/Data_type Data type] @ Wikipedia

Revision as of 09:30, 4 June 2015

In computer science and computer programming, a data type (or simply type) is a classification identifying one of various types of data that determines:

  • The possible values for that type
  • The operations that can be done on values of that type
  • The meaning of the data
  • The way values of that type can be stored

Data types are used within type systems, which offer various ways of defining, implementing and using them. Different type systems ensure varying degrees of type safety.

Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology.

Common data types include:

  • Integers
  • Floating-point numbers
  • Booleans
  • Characters
  • Alphanumeric strings
  • Arrays

External links