On Fri, 4 Sep 1998, Glynn Clements wrote:

-
-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.

gcc -Wall would point out (and 'fix') this wouldn't it?

-- 
+++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++
[EMAIL PROTECTED]                    http://x-map.home.ml.org

Reply via email to