Skip to content

Data Types

Rui Ventura edited this page Mar 29, 2017 · 1 revision

The language is weakly typed (some implicit conversions are made). There are 4 data types, all compatible with the C language, and are always aligned to 32 bits in memory:

  • Numeric types: integers, in 2's complement, take up 4 bytes; reals, in floating point, take up 8 bytes (IEEE 754).
  • Strings are unidimensional arrays of characters ending with the ASCII NULL character (\x00, \0). String variables and literals can only be used in assignments, prints, or as function arguments or return values.
  • Pointers represent objects' addresses, taking up 4 bytes. Pointer arithmetic is allowed, as well as accessing the value the pointer points to.