The pointer is invalidated only if the object is moved and the object is not always moved and hence the pointer is not always invalidated.<p><a href="http:&#x2F;&#x2F;pubs.opengroup.org&#x2F;onlinepubs&#x2F;7908799&#x2F;xsh&#x2F;realloc.html" rel="nofollow">http:&#x2F;&#x2F;pubs.opengroup.org&#x2F;onlinepubs&#x2F;7908799&#x2F;xsh&#x2F;realloc.htm...</a>