Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Guyutongxue/MyCppTutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Oct 3, 2023
2 parents f1630e4 + 0a9e97e commit 50ba5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch02/part1/type_system/integer_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ signed int num{0};

![uint](https://s1.ax1x.com/2020/07/06/UCR3lQ.png)

其中 123 的二进制形式为 $(1111011)_2$ 。 因此,32 位的 `unsigned int` 型能存储的最小值为 $0$ ,最大值为 $2^{31}-1$ ,即 $4294967295$ 。对于其它大小的类型也是这样的道理。
其中 123 的二进制形式为 $(1111011)_2$ 。 因此,32 位的 `unsigned int` 型能存储的最小值为 $0$ ,最大值为 $2^{32}-1$ ,即 $4294967295$ 。对于其它大小的类型也是这样的道理。

> $(x)_2$ 表示 $x$ 现在的写法是一个二进制写法。有的书上也会用 $x_{(2)}$ 来表示二进制数。
Expand Down

1 comment on commit 50ba5b3

@vercel
Copy link

@vercel vercel bot commented on 50ba5b3 Oct 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.