C++ int var types internals demo

Miscellaneous programs and scripts, opensource or not, and sometimes, random mathematical stuff.
User avatar
Gamall
Hic sunt dracones
Posts: 4132
Joined: Fri May 26, 2006 11:09 pm
Contact:

C++ int var types internals demo

Postby Gamall » Sun Apr 29, 2007 1:15 pm

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 ttlg.com.

(note: the output on the screenshot would be different if compiled on a 64 bits system, with long being 64 bits)
Attachments
C++ var types internals demo.exe
(232.5 KiB) Downloaded 338 times
demo.PNG
demo.PNG (28.51 KiB) Viewed 7415 times
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }

Return to “Freewares, game mods, Java, C++, OCaml & Maths”

Who is online

Users browsing this forum: No registered users and 50 guests