Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
修改了ex2_32的答案
  • Loading branch information
noyidoit committed Mar 10, 2019
1 parent 46001b5 commit 2a8e3e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ch02/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,11 @@ p2 = p3; // 合法, p2 和 p3 都是底层const,拷贝时忽略掉顶层const
```
int null = 0, *p = null;
```
合法。指针可以初始化为 0 表示为空指针。
非法.
把int变量直接赋给指针是错误的操作,即使int变量的值恰好等于0也不行.
```
int null = 0, *p = 0;
```

## 练习2.33

Expand Down

0 comments on commit 2a8e3e4

Please sign in to comment.