[Dev-C++] sending and retrieving values from functions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: jag <won...@th...> - 2000-12-30 23:00:15
|
hi, i'm studying a tutorial that makes use of a function named my_number. at the beggining of the code before the main loop it is declared as follows:- void my_number(void); the code for the routine is called from within the main loop by the command my_number(); my question is, if i wanted a return value for one of the values in the function my_number what command would i use? The tutorial explains the use of the term void in the code saying that it is used when there is no return values! Is it possible for anyone to explain how i might send or retrieve values to the function my_number? thanks, jag |