Click here to Skip to main content
15,904,494 members
Articles / Programming Languages / C++17

C/C++: Allocate Variable-size Arrays on the Stack

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
24 May 2020CPOL2 min read 13.2K   2  
How to allocate variable-size arrays on the Stack in C/C++
This tip will show you how to allocate variable-size arrays on the stack to be used with C++17 containers.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Singapore Singapore
Shao Voon is from Singapore. His interest lies primarily in computer graphics, software optimization, concurrency, security, and Agile methodologies.

In recent years, he shifted focus to software safety research. His hobby is writing a free C++ DirectX photo slideshow application which can be viewed here.

Comments and Discussions