is it okay to declare an array like this: `int arr[3/0]` in C++?
<p>I want this array to have a capacity that's big enough And the compiler is okay with the declaration <code>int arr[3/0]</code>.</p>
<p>I'm not saying it's exactly infinite. I'm saying it won't tell you to stop inputting elements into the array as long as there's no stack overflow or things like that.
I wonder if it's not recommended.</p>
<h1>UPDATE:</h1>
<p>So I guess some guys got me wrong.
I know the dynamic container which I'm using like this:</p>
<pre><code>int *elements;
cin&gt;&gt;numberOfElements;
elements = new int[numberOfElements];
free(elements);
</code></pre>
<p>I'm just wondering if <code>int elements[3/0]</code> would do this trick to replace the code above.</p>