Fundamental Types; Arithmetic Types - mikroElektronika PIC Microcontrollers PIC12 User Manual

Mikroc user's manual
Table of Contents

Advertisement

mikroC - C Compiler for Microchip PIC microcontrollers

FUNDAMENTAL TYPES

Arithmetic Types

The arithmetic type specifiers are built from the following keywords:
int
unsigned
types. Overview of types is given on the following page.
Integral Types
Types
types. Variants are created by using one of the prefix modifiers
signed
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
unsigned int
The modifiers
short
ly.
Floating-point Types
Types
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).
page
60
,
, and
, together with prefixes
float
double
. From these keywords you can build the integral and floating-point
and
, together with their variants, are considered integral data
char
int
, and
.
unsigned
and
, when used on their own, mean signed
unsigned
, respectively.
and
short
long
and
used on their own mean
long
and
, together with the
float
double
MikroElektronika: Development tools - Books - Compilers
short
can be applied only to the
and
short int
long double
mikroC
making it simple...
,
void
char
,
,
, and
long
signed
,
,
short
long
and
int
. The keywords
int
, respective-
long int
variant, are consid-
,

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents