In a book on C++ Programming, a question was: "An int variable x is initialised with the value 92,126. What will be the result when this is run on an MS-DOS compiler? "
The answer said since x=92126 is larger than the maximum value an int variable can store (namely, 32,767) on an MS-DOS compiler, so x will be mangled and the output would be 26,590.
I don't understand what "mangling" is. I couldn't find anything about it on the net. So, I don't know why the result is 26,590. I think, if anything, since the maximum value possible is 32,767, that should be the result. But I am not sure. I need some help on this.
Here's the link for the chapter of the book containing the problem (question 4.1) and its solution: https://www.safaribooksonline.com/library/view/practical-c-programming/0596004192/ch04.html