Is alloca part of the C++ standard?

不羁的心 提交于 2019-11-28 13:18:55

No. The answer says it all.

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)

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