User`s manual

mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
Type determines the allowed range of values for variable, and which operations
may be performed on it. It also determines the amount of memory used for one
instance of that variable.
* char type can be treated as byte type in every aspect
Array represents an indexed collection of elements of the same type, often called
the base type. Base type can be any simple type.
String represents a sequence of characters. It is an array that holds characters and
the first element of string holds the number of characters (max number is 255).
Sign is important attribute of data types, and affects the way variable is treated by
the compiler.
Unsigned can hold only positive numbers:
byte 0 .. 255
word 0 .. 65535
Signed can hold both positive and negative numbers:
short -128 .. 127
integer -32768 .. 32767
longint -2147483648 .. 214748364
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
31
page
DATA TYPES
Simple
Sign
Structured
Type Size Range of values
byte 8-bit 0 .. 255
char* 8-bit 0 .. 255
word 16-bit 0 .. 65535
short 8-bit -128 .. 127
integer 16-bit -32768 .. 32767
longint 32-bit -2147483648 ..147483647