Skip to content

Commit

Permalink
修正习题2.1
Browse files Browse the repository at this point in the history
应当是说无符号类型和带符号类型的区别,而不是相同之处。
  • Loading branch information
lafener committed Dec 17, 2014
1 parent d5b25c4 commit 4390e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch02/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ a double?

C++ guarantees `short` and `int` is **at least** 16 bits, `long` **at least** 32 bits, `long long` **at least** 64 bits.

The `unsigned` and `signed` type have the **same size**. for example, sizeof(unsigned short) == sizeof(short).
The `signed` can represent positive numbers, negative numbers and zero, while `unsigned` can only represent numbers no less than zero.

The C and C++ standards do not specify the representation of float, double and long double.
It is possible that all three implemented as IEEE double-precision.
Expand Down

0 comments on commit 4390e36

Please sign in to comment.