x = 3, counter = 0; while ((x-1)) { ++counter; x--; } Referring to the sample code above, what will be the value of variable counter after the execution of the code?
Reveal answer
Fill a bubble to check yourself
x = 3, counter = 0; while ((x-1)) { ++counter; x--; } Referring to the sample code above, what will be the value of variable counter after the execution of the code?