mikroElektronika PIC Microcontrollers PIC12 User Manual page 58

Mikroc user's manual
Table of Contents

Advertisement

mikroC - C Compiler for Microchip PIC microcontrollers
Semicolon
The semicolon (
empty expression) followed by a semicolon is interpreted as a statement, known as
an expression statement. The expression is evaluated and its value is discarded. If
the expression statement has no side effects, mikroC might ignore it.
a + b;
++a;
;
Semicolons are sometimes used to create an empty statement:
for (i = 0; i < n; i++) ;
For more information, see Statements.
Colon
Use the colon (
start:
...
goto start;
Labels are discussed in Labeled Statements.
Asterisk (Pointer Declaration)
The asterisk (
char *char_ptr;
You can also use the asterisk as an operator to either dereference a pointer or as
the multiplication operator:
i = *char_ptr;
For more information, see Pointers.
page
50
) is a statement terminator. Any legal C expression (including the
;
/* evaluate a + b, but discard value */
/* side effect on a, but discard value of ++a */
/* empty expression or a null statement */
) to indicate a labeled statement. For example:
:
x = 0;
) in a declaration denotes the creation of a pointer to a type:
*
/* a pointer to char is declared */
MikroElektronika: Development tools - Books - Compilers
mikroC
making it simple...

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