This is a Test for the People of MFGG, to see how their Windows or WINE-Running OSes store Variables. This Console Program declares 5 Integers, 5 Doubles, and 5 Bools to see how different Computers store the variables. Here are my Results:
Int a: 0x22FF74
Int b: 0x22FF70
Int c: 0x22FF6C
Int d: 0x22FF68
Int e: 0x22FF64
Double f: 0x22FF58
Double g: 0x22FF50
Double h: 0x22FF48
Double i: 0x22FF40
Double j: 0x22FF38
Bool k: 0x22FF37
Bool l: 0x22FF36
Bool m: 0x22FF35
Bool n: 0x22FF34
Bool o: 0x22FF33
So right now this tells me that Ints take up 4 Bits, Doubles take up 1 Byte, and Bools take up 1 Bit. The Bools make sense, but I don't get the Int part. Ints, specifically unsigned ints, can have values up to 4294967295, which requires 4 Bytes. Also, Doubles should take up 8 Bytes according to
this Tutorial. Hrm...
EDIT: Yes, I was dumb enough to forget the Download.
Here it is! This post has been edited by OniLink10 on Nov 20 2008, 10:00 PM