开发者

Most Common Mistake done/seen in C++ [duplicate]

开发者 https://www.devze.com 2023-01-21 05:43 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: What C++ pitfalls should I avoid ?
This question already has answers here: Closed 12 years ago.

Possible Duplicate:

What C++ pitfalls should I avoid ?

What is the most common mistake in C/C++programming that you keep committing or see most of the people do? Being aware of it atleast subconsciously will increase my or anyone's chances of committing i开发者_JS百科t.


Wrong memory management in all kinds of ways - new without delete, delete on the wrong pointer, unclear ownership of a pointer with resulting memory allocation / deallocation problems etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消