![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395180x1.png)
7
| Simple Types Passed by Reference | |
| Simple types pass in a straightforward manner, as follows: | |
The C++ function, SimRef.cc |
|
|
extern | "C" | |
| void SimRef ( | |
| char | &t, |
| char | &f, |
| char | &c, |
| int | &i, |
| short &s, |
float &r, double &d)
{
t = 1; f = 0; c = 'z'; i = 9; s = 9;
r = 9.9; d = 9.9;
}
156 | Pascal 4.0 User’s Guide |