PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 48

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
switch
Switch is also a special multi-way decision maker.
The syntax is
switch (expr) {
}
This tests whether the expression matches one of the constant values and branches accordingly.
If none of the cases are satisfied the default case is executed. The break causes an immediate exit,
otherwise control falls through to the next case.
Example:
switch (cmd) {
Also See:
return
Statement: return [expr];
value.
The syntax is
Example:
return (5);
Also See:
34
A return statement allows an immediate exit from a switch or a loop or function and also returns a
return(expr);
case const1: stmt sequence;
...
[default:stmt]
case 0:printf("cmd 0");
case 1:printf("cmd 1");
default:printf("bad cmd");
Statements
Statements
break;
break;
break;
break; }

Related parts for PCDIDE COMPILER