Hi Yose, a typical program has many functions and one of them is always
main. But lets say we want to write a function that changes a number from
xx to 19xx. I will not write this function but let's say that at the end
of the function the number 19xx is in num. To get this number back to the
function main I use return num; as the very last statement.

This is a very basic concept and your book should explain it well.

On Mon, 31 Aug 1998, Yose Adrian wrote:

> Hello all,
> 
>    I'm still confusing with the return command. Such as the difference
> between
> return 0, return value etc. And the effect to program when misuse of it, if
> any.
> So anyone would explain it briefly please. 
> 
> 
> Thanks and sorry for my silly question :-).
> 
> --Me, myself--
> 
> 

Best wishes 

   - Karl F. Larsen, 3310 East Street, Las Cruces,NM (505) 524-3303  -

Reply via email to