00:01
Okay, so in this question we have a fragment of a c program and we want to know how many times will it be executed.
00:12
So basically we have a while loop and we want to know how many times will be in the wild.
00:19
Sadly this question has kind of two answers.
00:29
So the first answer is that as written, and i really, copied what's in your textbook what's in the textbook so as written this code wouldn't compile because x is undefined so the code would never be executed the syntax error is that as i say x is undefined so we should not have x equal 10 we should have in x equals and with semicolon and the end now this would run so if the syntax error is fixed, then, or then what would happen? so we would have x equals 10.
02:41
So i'm going to write it in blue, pale blue.
02:47
Then i'm, okay, i'm going to write on top here in pale blue, and i'm going to continue my sentence later.
02:55
So we would have x equals the 10.
03:00
Then we would have x equal to 1 because when we do here, we would assign the value 1 to x.
03:10
So while we assign 1 to x, so that's okay, now then x would be equal to 2, because we would add x to itself...