In computer programming, a datatype of a variable is a sort of flag which signifies what type the variable is. There are generally several datatypes for numbers (such as double, float, etc.) based on how large the number is, whether it's negative, and other precision measurements. Boolean variables appear in virtually all languages; they are the fundamental true/false flag.

In some low-level languages such as C, there is no string datatype to store multiple characters; one can only have arrays of single characters which cannot be combined except with special functions, or a class with operator overrides.

This article is a stub. Help us out by expanding it.