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

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
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 PCDIDE COMPILER