August 2003
Intermediate to advanced
1104 pages
19h 27m
English
Flow-control primitives should be compound statements, even if they contain only one instruction. Like functions, compound statements should have opening braces that start at column zero relative to scope. Code within the braces forms a new scope and should be indented.
// tell the user if a is equal to ten
if($a==10)
{
printf("a is ten.\n");
}
else
{
printf("a is not ten.\n");
}