I have a question regarding data types
1. This code
unsigned short num=65535;
cout << num+2 << endl;
outputs 65537 . I expected it to output 1 because of the value
wrapping around itself if you get my meaning. Does the cout
object have an ability to change to a more suitable data type?
Can anybody shed some light?