Page 1 of 1

C++ int var types internals demo

Posted: Sun Apr 29, 2007 1:15 pm
by Gamall
Just a quick prog to demonstrate that int uses 4 bytes on 32 bits systems, and show how int values are stored in memory, in response to a post on

(note: the output on the screenshot would be different if compiled on a 64 bits system, with long being 64 bits)