??? 06/06/07 17:17 Read: times |
#140326 - weekend quiz? Responding to: ???'s previous message |
Matthew, this looks like one of those weekend quizes here - "guess what does this one do"... :-)
You might have given perhaps a hint of explanation, such as... if you take value, multiply by 2, then copy aside and multiply by 4, then add all up, it's the same as multiply by 10... But once writing in C, supposedly a high-level-language (-ish :-) ) I see absolutely no reason to make it easier for the compiler/mcu and avoid the multiply... Also, if you return int, the error value could be something like -1, couldn't it... JW (the C-hater) |