One is not supposed to use bracesinside one's case statements.Code:{ }
One is not supposed to use bracesinside one's case statements.Code:{ }
Why not? It's helps organize the code. They are optional, but they don't hurt.
Braces can be put anywhere in a function body to separate out a section of code. This has the other effect that all local variables declared within the block are destroyed at the end of the block. If there are no local variables, then the braces serve only as a visual que.
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.