August 2000
Intermediate to advanced
800 pages
13h 15m
English
Flow control primitives should be compound statements, even if they only contain 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");
}
Read now
Unlock full access