&gt; The compiler is aware that realloc invalidates its pointer parameter.<p>According to the standard, realloc doesn&#x27;t invalidate its pointer parameter, since it can return the existing pointer (if the resizing could be done in-place) and can not touch the existing pointer (if the reallocation fails).