Saturday, November 29, 2008

Predict the counter value

x = 3, counter = 0;
while ((x-1))
{
++counter;
x--;
}

Choice a: 0
Choice b: 1
Choice c: 2
Choice d: 3
Choice e: 4


No comments: