Basic uses of branching mechanisms in C