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)