题目
单项选择题
When memory allocated with the C malloc function is no longer needed, that memory should be returned to the system immediately by calling the C __________ function.
选项
A.delete
B.dealloc
C.free
D.return
查看解析
标准答案
Please login to view
思路分析
The question asks which C function should be used to release memory previously allocated with malloc. Understanding the lifecycle of dynamic memory in C helps evaluate the options.
Option 1: delete. This is incorrect for C; delete is a keyword/operator used in C+......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Which XXX completes the leaf removal case in the C++ BinarySearchTree class's Remove() function? if (currentNode->left == nullptr && currentNode->right == nullptr) { if (parent == nullptr) { root = nullptr; } else if (parent->left == currentNode) { parent->left = nullptr; } else { parent->right = nullptr; } XXX return true; }
In a consumer society, many adults channel creativity into buying things
Economic stress and unpredictable times have resulted in a booming industry for self-help products
People born without creativity never can develop it
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!