 <p>This is a non-standard GCC extension. Many other compilers like Visual C++ don't support <a href="https://en.wikipedia.org/wiki/Variable-length_array" rel="nofollow">VLA</a>.</p> <p><a href="http://rextester.com/WPX55597" rel="nofollow">LIVE DEMO</a></p>