When you compile this program, you may get a warning similar to, “[Warning] this decimal constant is unsigned.”
- 1. Types, Variables, and Standard I/O: Lost Fortune
- from Beginning C++ Through Game Programming, Third Edition
- Publisher: Course Technology PTR
- Released: October 2010
Note: g++ 8.1.0 (via Xcode) for Sierra does not display a warning, even with -Wall turned on during compile. The variable does return 0 after the last expressing (showing the wrap) but no error message.
Share this highlighthttp://www.safaribooksonline.com/a/beginning-c-through/7809441/