Creating an Array: Difference between revisions

→‎{{header|C++}}: Works with any compiler compliant with any version of the C++ standard
m (→‎{{header|C++}}: Added some C++ details)
(→‎{{header|C++}}: Works with any compiler compliant with any version of the C++ standard)
Line 124:
 
=={{header|C++}}==
{{works with|g++}}
{{works with|Visual C++}}
{{works with|BCC}}
{{works with|Watcom}}
Using dynamically-allocated (i.e. [[Heap]]) memory:
const int n = 10;