ABL electronic PIC12 Benutzerhandbuch

Seite von 312
Arithmetic Types
The arithmetic type specifiers are built from the following keywords: 
void
char
,
int
float
, and 
double
, together with prefixes 
short
long
signed
, and
unsigned
. From these keywords you can build the integral and floating-point
types. Overview of types is given on the following page.
Integral Types
Types 
char
and 
int
, together with their variants, are considered integral data
types. Variants are created by using one of the prefix modifiers 
short
long
,
signed
, and 
unsigned
.
The table below is the 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 unsigned prefix, signed is automatically assumed for integral types.
The only exception is the 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 be applied only to the 
int
. The keywords
short
and 
long
used on their own mean 
short int
and 
long int
, respective-
ly.
Floating-point Types
Types 
float
and 
double
, together with the 
long double
variant, are consid-
ered floating-point types. mikroC’s implementation of ANSI Standard considers all
three to be the same type.
Floating point in mikroC is implemented using the Microchip AN575 32-bit for-
mat (IEEE 754 compliant).
mikroC - C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
60
MikroElektronika:  Development  tools  -  Books  -  Compilers
page
FUNDAMENTAL TYPES