4 ms·
Actually it is implementation defined. You may get a NULL pointer or a non-NULL pointer which may not be dereferenced. This is intentional so that you can alw
by readerrrr 12y ago
Actually it is implementation defined.
You may get a NULL pointer or a non-NULL pointer which may not be dereferenced.
This is intentional so that you can always call free on a pointer received from malloc functions, regardless of the allocation result.( passing a NULL to free is ok )