From 016088f8fd6019b0b806b4b0ed792ad25a74d29d Mon Sep 17 00:00:00 2001 From: evan617 Date: Thu, 13 Nov 2014 12:06:14 +0800 Subject: [PATCH] Fix the exercise4.30 --- ch04/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch04/README.md b/ch04/README.md index 13a1d035..20eab4da 100644 --- a/ch04/README.md +++ b/ch04/README.md @@ -264,7 +264,7 @@ reference: [Why the size of a pointer is 4bytes in C++](http://stackoverflow.com sizeof x + y // sizeof(x+y) sizeof p->mem[i] // sizeof(p->mem[i]) sizeof a < b // sizeof(a) < b -sizeof f() // compile successfully. +sizeof f() // compile error if the return of f() is void. If f() has a return value, compile successfully. ``` -----