I have this little piece of code and I am having trouble comprehending what could possibly be the output?
int main()
{
unsigned int i=65000;
while ( i++ != 0 );
printf("%d",i);
return 0;
}
I can sense post-increment is playing a major role in the loop but I am not able to visualise it. Do unsigned ints behave differently in while loops after reaching highest positive value? Lastly what is the purpose of a semicolon after the while loop?