00:02
Okay, they start us off at x is equal to 2, y is equal to 6, z is equal to 10, and let's see.
00:10
For each exercise, use the original declaration, okay, so we have code for line a, b, c, d, e.
00:20
Let's see in line a.
00:21
They all want us to start on the original, so we're always going to refer back to this for any of them.
00:26
Now let's see.
00:28
They say for z, you're going to add the result of the expression y mod 2.
00:35
Being pre -incremented.
00:38
So y is going to have a 7 after that pre -increment.
00:43
Then you're going to do 7 mod 2, which is a 1.
00:47
So you're going to add 1 to z, which is 11, and nothing happened to x.
00:51
So that's that.
00:53
Then we have x is equal to y plus 14 minus z divided by 7.
00:58
Well, okay, looks like nothing happens to y or z, so there's still 6 and 10.
01:03
X is going to be assigned.
01:05
Let's evaluate that expression from left to right.
01:07
Multiplication will be done first.
01:09
10 divided by 7.
01:10
They're both integers.
01:11
Their remainder will be lost, so we'll end up with 1 because 7 goes into there 1 times.
01:15
So 14 minus 1, which is 13.
01:18
And then you're going to add that to 6.
01:20
So we're going to end up with 19 as the result of x there.
01:24
And let's see x.
01:25
Let's see compound operator.
01:28
Pre -decrement z minus 1 multiplied by 2.
01:33
Okay, so it's a pre -decrement.
01:36
Let's see.
01:38
Z will become 9...