devxlogo

What’s in a Block?

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

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

devx-admin

Share the Post: