Answer

Functions communicate through their arguments and return values. In order to send data into a function, the data should be included in one of the arguments to the function. In order to get data out of a function, that data should be the return value of the function.

Return to lesson.



Eric N. Eide
Hamlet Project
Department of Computer Science
University of Utah