Chapter 6

Statements

Abstract

This chapter details each of the C executable statements. Conditional, loop, and jump statements are shown with a narrative, examples, and diagrams. The best use of compound statements and nested statements is fully explained. C labels are included in this chapter for use with the discouraged goto statement.

Source code indentation is shown and explained to improve code readability. Good documentation practices for program control flow are introduced including flowcharts and pseudo-code. This chapter also teaches the reader about standard metrics to determine overall code complexity and maintainability.

Examples and exercises are for the popular PIC microcontroller manufactured by Microchip.

Keywords

Statements ...

Get Embedded C Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.