| Types | Index |
The TEA language currently supports the following types:
void
The void type represents no data. It is typically used to show explicitly that there is no return value from a routine or no parameters for a routine.
char
The char type represents a signed byte. It has a range of -128 to 127.
unsigned char
The unsigned char type represents an unsigned byte. It has a range of 0 to 255.
int
The int type represents a signed integer comprised of 2 bytes. It has a range of -32768 to 32767.
unsigned int
The unsigned int type represents an unsigned integer comprised of 2 bytes. It has a range of 0 to 65535.
string
The string type is a fixed series of ASCII-encoded text characters.
| Warning | The string type is fairly limited and quite expensive in terms of storage in both the program code space as well as stack space. Care should be taken when using this type. |
Related: