No, I'm talking about casting pointers - not values. Also, you didn't malloc enough and didn't initialize the memory.
Fixed:
Yes, I'm saying LE will print 0x67 and BE will print 0x01.
The important point is to go from foo32 to foo8. This way, a compiler could decide to offset the pointer for you. Not saying it will, but it would at least have enough information to do so. Anyway, whether it would was my question, but everything I've seen points to "no".
Fixed:
Originally posted by chithanh
View Post
The important point is to go from foo32 to foo8. This way, a compiler could decide to offset the pointer for you. Not saying it will, but it would at least have enough information to do so. Anyway, whether it would was my question, but everything I've seen points to "no".
Comment