The C Programming Language Exercise 3-4
題目:
In a two's complement number representation, our version of itoa does not handle the largest negative number, that is, the value of n equal to -(2 to the power (wordsize - 1)) . Explain why not. Modify it to print that value correctly regardless of the machine on which it runs.
解法:
也是有趣題!先把最小值 + 1,即可處理 XD。只附上itoa()。