00:01
Okay, so in this question we have a piece of c code and we want to analyze what the output of this program fragment will be.
00:09
So first glance you might think, and this is not the right answer, but what you might think is that okay we have i equal three and while i is lesser than 15 we add three to i.
00:25
So for example i equals three smaller than 15 we add three, six is less than than 15 so we add three again.
00:34
Nine is more than 15.
00:35
We add three again.
00:38
12 is smaller than 15.
00:40
We had three again.
00:41
15 is not smaller than 15.
00:44
And in the console window in the end, we would be left with, let's pretend like this is a console window in orange.
00:56
And the output, it will simply print 15.
01:00
That's what we want to do with this program, but as it's written right now, it wouldn't work.
01:09
So i will use green to write the answer to the question...