why it is undefined? I can run the program. but when I print like this {{{ ... cout<cout<}}} the output is: 4 0012FED4 5 0012FED4 what is the reason?
f*y
11 楼
it seems compiler generated an hidden variable for *p. That is, *p is no longer equal to the value stored at p. btw, 你机器的内存似乎不大 :D
【在 g*********8 的大作中提到】 : why it is undefined? : I can run the program. : but when I print like this : {{{ : ... : cout<: cout<: }}} : the output is: : 4 0012FED4
t*t
12 楼
undefined has nothing to do with can or can not run. in fact, most undefined program can be compiled and runned. if it can't pass compile, it is called "ill-formed".
【在 g*********8 的大作中提到】 : why it is undefined? : I can run the program. : but when I print like this : {{{ : ... : cout<: cout<: }}} : the output is: : 4 0012FED4