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

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
Overloaded Functions
Overloaded functions allow the user to have multiple functions with the same name, but they must
accept different parameters. The return types must remain the same.
Here is an example of function overloading: Two functions have the same name but differ in the
types of parameters. The compiler determines which data type is being passed as a parameter and
calls the proper function.
This function finds the square root of a long integer variable.
This function finds the square root of a float variable.
FindSquareRoot is now called. If variable is of long type, it will call the first FindSquareRoot()
example. If variable is of float type, it will call the second FindSquareRoot() example.
42
long FindSquareRoot(long n){
}
float FindSquareRoot(float n){
}
result=FindSquareRoot(variable);

Related parts for PCWHD IDE COMPILER