Is alloca part of the C++ standard?

纵然是瞬间 提交于 2019-11-26 22:00:39

问题


Is alloca part of the C++ standard?


回答1:


No. The answer says it all.




回答2:


Not only is it not part of the C++ standard, it is not part of any standard. It's not part of C nor is it part of POSIX. Furthermore, allow me to quote from the Linux man page for alloca(3):

The alloca() function is machine and compiler dependent. On many systems its implementation is buggy. Its use is discouraged.

(emphasis added)



来源:https://stackoverflow.com/questions/2318306/is-alloca-part-of-the-c-standard

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!