WEBVTT

00:00.570 --> 00:05.300
This section is all about making decisions in our algorithms.

00:05.310 --> 00:11.880
But I want to start with going over something we missed before but will be very important in this section

00:11.940 --> 00:13.750
and feature sections.

00:14.040 --> 00:26.200
So we saw in our main function here that we have these braces or curly braces here around all our statements.

00:26.400 --> 00:31.740
So remember what a statement is it's something that always ends in a semi-colon.

00:31.740 --> 00:41.860
So for example RCO statement here is an example of a statement and we have this other thing up here

00:41.890 --> 00:49.590
called the declaration which just means hey compiler I'm going to be using something called x.

00:49.600 --> 00:56.860
So we created this variable x this identifier x and we'll be using it later.

00:56.920 --> 01:00.810
So but we don't have a value associated with it yet.

01:00.820 --> 01:04.000
So that's that's a declaration.

01:04.050 --> 01:12.660
So these braces are used to group declarations and statements together into what's called a compound

01:12.660 --> 01:13.280
statement.

01:13.290 --> 01:17.480
So this whole thing is one compound statement.

01:17.520 --> 01:19.220
It's also called a block.

01:19.530 --> 01:25.410
So you can think of all these statements belonging to this block.

01:25.470 --> 01:26.170
So who knows.

01:26.170 --> 01:33.700
We don't have a semi-colon at the end of the right brace because we don't need it.

01:33.700 --> 01:40.080
This is an the braces themselves aren't a statement but everything in it is.

01:40.600 --> 01:47.380
So you'll see these a lot with the different control structures that we'll be using in our upcoming

01:47.380 --> 01:48.070
lectures.
