Skip to content

Commit c6be1b2

Browse files
committed
Merge pull request #396 from bjut-hz/master
Update ch05 ex5.13
2 parents 805e5e8 + 150d5d7 commit c6be1b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ch05/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,11 @@ Colloquial term used to refer to the problem of how to process nested if stateme
164164
case 'e': eCnt++; break;
165165
default : iouCnt++; break;
166166
}
167-
(b) // Error: ix is not in scope.
167+
(b) // Error: control bypass an explicitly initialized variable ix.
168168
unsigned index = some_value();
169-
int ix;
170169
switch (index) {
171170
case 1:
172-
ix = get_value();
171+
int ix;
173172
ivec[ ix ] = index;
174173
break;
175174
default:

0 commit comments

Comments
 (0)