Mueen Nawaz wrote:
> Orchid XP v8 wrote:
>> Spot the mistake:
>
> Function lacks a return statement.
Yup. A simple and obvious mistake. But unfortunately, not one the
compiler warned me about. (I'm also curios to know exactly what the hell
the function is returning... No doubt the reason there's no compiler
warning is that this is actually a valid thing to do due to some bizare
C language rule kept for compatibility or something random like that.)
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|