August 2024
Intermediate to advanced
792 pages
23h 9m
English

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 ...
Read now
Unlock full access