一、new与malloc,free与delete的异同 (1)相同点 都用于动态内存的申请、释放 (2)不同点 new与delete是C++的运算符,支持运算符重载,而malloc与free是C/C++的标准库函数,支持函数覆盖; new能自动计算所需内存大小,malloc需要传入分配内存大小; n Read More
题目地址:https://www.nowcoder.com/practice/e02fdb54d7524710a7d664d082bb7811?tpId=13&&tqId=11193&rp=1&ru=/activity/oj&qru=/ta/coding-interviews/question-ra Read More
题目地址:https://www.nowcoder.com/practice/75e878df47f24fdc9dc3e400ec6058ca?tpId=13&&tqId=11168&rp=1&ru=/activity/oj&qru=/ta/coding-interviews/question-ra Read More
题目地址:https://www.nowcoder.com/practice/8ee967e43c2c4ec193b040ea7fbb10b8?tpId=13&&tqId=11164&rp=1&ru=/activity/oj&qru=/ta/coding-interviews/question-ra Read More
题目地址:https://www.nowcoder.com/practice/22243d016f6b47f2a6928b4313c85387?tpId=13&&tqId=11162&rp=1&ru=/activity/oj&qru=/ta/coding-interviews/question-ra Read More
题目地址:https://www.nowcoder.com/practice/8c82a5b80378478f9484d87d1c5f12a4?tpId=13&&tqId=11161&rp=1&ru=/activity/oj&qru=/ta/coding-interviews/question-ra Read More
题目地址:https://www.nowcoder.com/practice/c6c7742f5ba7442aada113136ddea0c3?tpId=13&&tqId=11160&rp=1&ru=/activity/oj&qru=/ta/coding-interviews/question-ra Read More