Skip to content

Commit 239b288

Browse files
committed
Break statement documentation fix
1 parent cb9a8a9 commit 239b288

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/cpp/break-statement-cpp.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ int main() {
9494

9595
```Output
9696
In each case:
97-
0123
97+
0
98+
1
99+
2
100+
3
98101
```
99102

100103
The following code shows how to use **`break`** in a switch statement. You must use **`break`** in every case if you want to handle each case separately; if you do not use **`break`**, the code execution falls through to the next case.

0 commit comments

Comments
 (0)