[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: not enough real programmers? (was Re: Byte Magazine: 18 Vintage issues, 1985-1986)




Gene Wirchenko wrote:
> 
> 
> >3.  "Write a function to print out a 32-bit number in decimal, but in
> >reverse."
> 
>      I like this one.  Again, there are platform considerations.
> 

Not really, just use unsigned longs.

Anyway, in reverse order is the easy case. Printing the number
in forward order requires a lot more twiddling.



(Assuming we're not using the standard library here...)



-- 
<\___/>
/ O O \
\_____/  FTB.