In our first t program we wrote a simple print statement with a string containing exactly what should be printed to the output. For more advanced applications however, we may need to store values that we can call upon at a later time. For that purpose, we need variables.
Variables is an umbrella term used to refer to types of values that can be stored and altered, or recalled in code. You may, for instance, store a message identifier as an integer, a whole number type. There are four types predefined in t with support of arrays of any type though more complex types can be created using the ones available. These types are:
int – A 32-bit signed integer.
float – A 32-bit floating point number.
char – An 8-bit character (signed integer)
byte – An 8-bit unsigned integer.