RE: [Dev-C++] sending and retrieving values from functions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ya...> - 2000-12-31 00:26:32
|
int f(void); //function that accepts no parameters and returns an int int f(int x); // function that accepts an int and returns an int void f(int x); //function that accepts an int and does not return any value Ioannis > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of jag > Sent: Sunday, December 31, 2000 1:06 AM > To: devc++ mail-list > Subject: [Dev-C++] sending and retrieving values from functions > > > 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 > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |