holotko wrote:
> 2) Returning a type other than the declared value for the return type:
> for exaple, the function:
>
> int foo()
> {
> float y;
>
> return y;
> }
>
> would generate an error because it's retuurning type float where an int is expected.
This won't generate an error (unless your compiler is seriously
broken). The return value will be silently converted to an int.
--
Glynn Clements <[EMAIL PROTECTED]>
- Still confuse with "return" Yose Adrian
- Re: Still confuse with "return" Karl F. Larsen
- Re: Still confuse with "return" holotko
- Re: Still confuse with "return" Glynn Clements
- Re: Still confuse with "return" James
- Re: Still confuse with "return" Glynn Clements
- Global variables Ravindra Jaju
- Re: Global variables Glynn Clements
- Re: Global variables Andrew P. Bell
- Re: Global variables James
