When to Use the Braces { … }
A brace pair {…} is needed when an action requires more than one statements.
Syntactically, a single statement is equivalent to a group of statements enclosed in a pair of braces.
Grammatically, braces are not absolutely required in if, while, etc. But adding braces make the code clearer.
if(xɬ) printf("A");
printf("B");
if (xɬ) {
printf("A");
}
printf("B");