The Basic programming language is a simple and easy to understand programming language
The Basic programming language is a simple and easy to understand programming language
1. Identifiers
2. Comments
3. Operators
4. Expressions
5. Instructions
6. Constants
7. Variables
8. Symbols
9. Directives
10. Labels
11. Procedures and functions
12. Modules
CONSTANTS
A constant is a number or a character the value of which cannot be
changed during the program execution. Unlike variables, constants are
stored in ROM memory of the microcontroller in order to save as much
memory space of RAM as possible. The compiler recognizes constants
by their names and prefix const. Every constant is declared under
unique name which must be a valid identifier. Constants are available
in decimal, hexadecimal and binary formats. The compiler
distinguishes between them according to their prefixes. If a constant
has no prefix, it is considered decimal by default. There are two types
of constants:
1. String constant
2. Numeric constant
VARIABLES
A variable is a named object able to contain a data which can be modified
during program execution. Every variable is declared under a unique name
which must be a valid identifier. For example, to add two numbers
(number1 + number2) in the program, it is necessary to have a variable to
represent what we in everyday life call the sum. In this
case number1, number and sum are variables. There are two types of
variables:
Numeric variable
String variable
Basic operators
Operators perform mathematical or logical operations on values. The
operators provided by basic are divided into four:
1. Arithmetic operations
2. Relational operations
3. Logical operations
4. Functional operations.