Diference betwen function types?
Posted: Thu Jun 01, 2006 9:53 pm
Hi everybody,
I just recently started defining my functions and i was wondering what diference is there when defining functions with void, int or something else?
I tried making the same function int and void and both ways it worked just fine. My guess is that void functions don't return results but int do, am i wrong?
If anybody is willing to explain or point somewhere i'd be gratefull.
I just recently started defining my functions and i was wondering what diference is there when defining functions with void, int or something else?
I tried making the same function int and void and both ways it worked just fine. My guess is that void functions don't return results but int do, am i wrong?
If anybody is willing to explain or point somewhere i'd be gratefull.