void foo (int a, int b)
{
// you can do things with a and b here
return; // you cannot return a value
} // end of foo
int bar (int a, int b)
{
return a + b; // you must return an int
} // end of bar
To call those:
int main ()
{
foo (1, 2); // call foo, there is no return value
bar (4, 5); // call bar, discard the return value
int fubar = bar (6, 7); // call bar, get its return value
} // end of main
Thanks again for the replies.
Fubar... hehe sounds like most of the code I write

So here:
int main ()
{
foo (1, 2); // call foo, there is no return value
bar (4, 5); // call bar, discard the return value
int fubar = bar (6, 7); // call bar, get its return value
} // end of main
In the function "void foo(int a, int b)", you're assigning the number 1 and 2 to "int a" and "int b" respectively.
In the function "int bar(int a, int b)", you're assigning the number 4 and 5 to "int a" and "int b" respectively, resulting in a value of int a + int b (4 + 5) which equals 9, but discarding the return value.
Then using the variable "int fubar", int fubar = bar(6, 7) to get a return of "13" ?
t