Ничего не произойдет. Стандарт C указывает, что вызов free с аргументом nullptr
не имеет эффекта (no effect
).
Стандарт C11, секция 7.22.3.3:
The
free
function causes the space pointed to by ptr to be deallocat
Ничего не произойдет. Стандарт C указывает, что вызов free с аргументом nullptr
не имеет эффекта (no effect
).
Стандарт C11, секция 7.22.3.3:
The
free
function causes the space pointed to by ptr to be deallocat
Register or sign in to get access to full answers for all questions from the question bank.