m********k 发帖数: 5 | 1 1) storing an int value in memoryu using a char* pointer can cause what kind
of issues?
2) how about storing an int value in a char variable? |
m********k 发帖数: 5 | 2 Could you guys shed some light on this? I am a C++ newbie, can not figure
it out.
Many thanks! |
k****f 发帖数: 3794 | 3 问题跟C++没关系的。
而且问题根本不interesting
char*的空间得足够才可以放下int
int的有效位要够小才能放进char
【在 m********k 的大作中提到】 : Could you guys shed some light on this? I am a C++ newbie, can not figure : it out. : Many thanks!
|
a******k 发帖数: 1190 | 4 the title is interesting, as least, lol |
m********k 发帖数: 5 | 5 I feel it is quite interesting (:-.
because the action might cause potentially memory access violation... |