What’s in a Block?

A compound statement is a sequence of one or more statements enclosed between { and }. For example:

 for (int n=0; n<100; ++n){ //.. a compound statement }

A compound statement is often called a "block"; the two terms are interchangeable.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: