I'm currently taking an introductory C++ class and the professor gave us the following example:
unsigned int TEST = -1;
cout << TEST;
Now, on his machine, TEST is returned as the maximum value for an integer, because he forced underflow. But on my machine, it is returned as 0.
Is this behavior compiler dependent or anything? In other words, why did my machine return 0 but his machine return the maximum?