Im working in C++ and I have a #define VAL 0x00000400. when I set a variable equal to the define: int value = VAL; when I run through the debugger is shows the variable value = 1024. could someone explain how that turns into 1024? Maybe some links to memory address info, #define info, or something relevant.
Im working in C++ and I have a #define VAL 0x00000400 . when I
Share
0x00000400 is base 16 for 1024. Your debugger is showing you the integer value in base 10.