Code: Select all
unsigned add2(unsigned a, unsigned b) {
if (a == 0) return b;
return add2(a-1, b+1);
}
===========================
Code: Select all
unsigned add2(unsigned a, unsigned b) {
if (a == 0) return b;
return add2(a-1, b+1);
}
Code: Select all
Function Add2(a as UInteger, b as UInteger) as Uniteger
If a = 0 then return b
return add2(a-1, b+1)
End Function
jevans4949 wrote:There was a story (urban myth?) of a young programmer working for IBM who figured out an optimisation for a compiler.
He was then told how much he had lost the company in upgrade sales.
jevans4949 wrote:@maddog6: Sorry, I should have clarified that this was back in the mainframe days when IBM dominated the mainframe market and supplied the software.
Return to “Community Discussion”
Users browsing this forum: No registered users and 6 guests