next up previous contents
Next: Solution Up: Procedures Previous: Solution

 

Simple example of a Function

Write a main program and an external function that returns the sum of two real numbers supplied as arguments.

Repeat the question but this time make the procedure internal.




next up previous contents
Next: Solution Up: Procedures Previous: Solution

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996