
please wait
|
|
(int)0x01 + 0x00 + 0x00 + 0x00 = 1; |
(float)0x00 + 0x00 + 0x80 + 0x3f = -65.00 |
(float)0x00 + 0x00 + 0x00 + 0x40 = 64.00 |
int *i = (int*)stream;
int *i = (int*)stream;
n*sizeof(int)
*i
is the same as (stream[0]) + (stream[1]<<8) + (stream[2]<<16) + (stream[3]<<24)
|
|
Decimal Value = 1 | Pointer Value = 00000001 Decimal Value = 1065353216 | Pointer Value = 3F800000 Decimal Value = 1073741824 | Pointer Value = 40000000 Decimal Value = 1077936128 | Pointer Value = 40400000 |
|
|
Decimal Value = 1 | Pointer Value = 00000001 Decimal Value = 0.007813 | Pointer Value = 3F23478C Decimal Value = 2.000000 | Pointer Value = 3F23478C Decimal Value = 32.000008 | Pointer Value = 3F23478C |
|
|
Int 1 2 3 4 5 6 7 8 9 10 Float One 1065353216.000000 1082130432.000000 1088421888.000000 1092616192.000000 1095761920.000000 1098907648.000000 1100480512.000000 1102053376.000000 1103626240.000000 1105199104.000000 Float Two 1073741824.000000 1084227584.000000 1090519040.000000 1093664768.000000 1096810496.000000 1099431936.000000 1101004800.000000 1102577664.000000 1104150528.000000 1105723392.000000 Float Three 1077936128.000000 1086324736.000000 1091567616.000000 1094713344.000000 1097859072.000000 1099956224.000000 1101529088.000000 1103101952.000000 1104674816.000000 1106247680.000000 |
|
|
|
|
C2440 can be caused if you attempt to convert a pointer to member to void* |
1, 1, 2, 3 2, 4, 5, 6 3, 7, 8, 9 4, 10, 11, 12 5, 13, 14, 15 6, 16, 17, 18 7, 19, 20, 21 8, 22, 23, 24 9, 25, 26, 27 10, 28, 29, 30 |
|
|