mikroElektronika PIC Microcontrollers PIC12 User Manual page 119

Mikroc user's manual
Table of Contents

Advertisement

mikroC
making it simple...
Thus, we have 10 different compound assignment operators:
,
%=
separating compound operators (e.g.
Compound assignment has the same effect as
expression1 = expression1 op expression2
except the lvalue
expression1 += expression2
is the same as
expression1 = expression1 + expression2
Assignment Rules
For both simple and compound assignment, the operands
expression2
1.
expression1
is an arithmetic type.
2.
expression1
type compatible with the type of
3.
expression1
versions of compatible types, and the type pointed to by the left has all the
qualifiers of the type pointed to by the right.
4. Either
type and the other is a pointer to a qualified or unqualified version of
The type pointed to by the left has all the qualifiers of the type pointed to by the
right.
5.
expression1
MikroElektronika: Development tools - Books - Compilers
,
,
,
, and
&=
|=
^=
<<=
expression1
must obey one of the following rules:
is a qualified or unqualified arithmetic type and
has a qualified or unqualified version of a structure or union
and
expression2
or
expression1
is a pointer and
mikroC - C Compiler for Microchip PIC microcontrollers
. All of these associate from right to left. Spaces
>>=
) will generate error.
+ =
is evaluated only once. For example,
expression2
are pointers to qualified or unqualified
is a pointer to an object or incomplete
expression2
is a null pointer constant.
expression2
,
,
+=
-=
*=
expression1
expression2
.
void
,
,
/=
and
.
page
111

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?

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents