Don&#x27;t use this. It&#x27;s really rusty and teaches bad habits superseded by C99.<p>Here&#x27;s a proper reference on C99 and C11:<p><a href="http:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;c" rel="nofollow">http:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;c</a><p>And see also reallocarray.