User`s manual

mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
const MaxAllowed = 234
const K_a = -32766
const Max = 1000
if teA > Max then teA = teA - 100
teC = teC + Min
' Constants can be used in any expression
const 7time = 123
' Wrong constant name, it must be
' a valid identifier
const Max = 1123456
' Assigned value exceeds the allowed
' range for integer
Max = A
Max = 123
' You cannot assign new value to a constant,
' compiler will report an error
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
37
page
Examples
Examples of
invalid use