Ari
Ari

Reputation: 3500

Is alloca part of the C++ standard?

Is alloca part of the C++ standard?

Upvotes: 20

Views: 6930

Answers (2)

Dan Moulding
Dan Moulding

Reputation: 220981

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)

Upvotes: 24

anon
anon

Reputation:

No. The answer says it all.

Upvotes: 31

Related Questions