00:02
So this time they say given the following segment of code, what will be the output? well, the segment of code is int.
00:10
X is equal to 5.
00:13
They say if x is exactly equal to 2.
00:19
Let's see, we're going to do a console right line.
00:24
Else we're going to do another right line with different.
00:29
Let's see, a sentence in it.
00:31
And then they just have a code to immediately follow after.
00:39
So is x equal to? nope.
00:41
So when we're actually running with this value, this code path is irrelevant.
00:45
It's not going to be run.
00:47
So they're going to run the else.
00:49
Well, what's inside the else? it's the sentence console right line, or the statement console dot right line.
00:55
The string, blue, blue sail on through.
00:58
So that's going to be our first line of output...