7 COMPOUND STATEMENTS
In this chapter, you’ll implement compound statements. Compound statements serve two important purposes. As you saw in the two previous chapters, they group together other statements and declarations into a single unit that can appear in a larger construct, like an if statement. More interestingly, they also delineate the different scopes within a function. A variable’s scope is the part of the program where that variable can be used; when you declare a variable inside a compound statement, its scope extends ...
Get Writing a C Compiler 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.