dereferencing the null pointer

Posted by FredOverflow on Stack Overflow See other posts from Stack Overflow or by FredOverflow
Published on 2010-05-24T11:43:52Z Indexed on 2010/05/24 11:51 UTC
Read the original article Hit count: 158

Filed under:
|
|
|
int* p = 0;
int* q = &*p;

Is this undefined behavior or not? I browsed some related questions, but this specific aspect didn't show up.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c