Datasheet

FUNDAMENTAL TYPES
The fudamental types represent types that cannot be divided into more basic ele-
ments, and are the model for representing elementary data on machine level. The
fudamental types are sometimes referred to as unstructured types, and are used as
elements in creating more complex derived or user-defined types.
The fundamental types include:
- Arithmetic Types
- Enumerations
- Void Type
ARITHMETIC TYPES
The arithmetic type specifiers are built up from the following keywords: void, char,
int, float and double, together with the prefixes short, long, signed and unsigned.
From these keywords you can build both integral and floating-point types.
Integral Types
The types char and int, together with their variants, are considered to be integral
data types. Variants are created by using one of the prefix modifiers short, long,
signed and unsigned.
In the table below is an overview of the integral types – keywords in parentheses
can be (and often are) omitted.
The modifiers signed and unsigned can be applied to both char and int. In the absence
of the unsigned prefix, signed is automatically assumed for integral types. The only
exception is char, which is unsigned by default. The keywords signed and unsigned,
when used on their own, mean signed int and unsigned int, respectively.
The modifiers short and long can only be applied to int. The keywords short and
long, used on their own, mean short int and long int, respectively.
150
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroC PRO for AVR
CHAPTER 5