Question
Thanks, how can I output the string "ABC" from the listing in the code ?
int a = 0x414243;
char* ptr = (char*) &a;
Thanks, how can I output the string "ABC" from the listing in the code ?
int a = 0x414243;
char* ptr = (char*) &a;
Hello,
Intel/AMD follow the little endianess rules so you cant specify ABC like that in an integer of "a", this is the correct integer to have ABC: int a = 0x00434241; following little endianess rules
Thanks