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

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
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 PCWHD IDE COMPILER