 <p>Yes that would be undefined behavior, but your compiler might optimize the <code>&amp;*</code> out.</p> <p>Why it its undefined, is that you are attempting to access memory outside your addressable space.</p>