How is preferable to allocate this array?
<p>I have two alternatives:</p>

<pre><code>class X{
int* x;
int size = ...;
void create() { 
    x = new int[size];
    use();
    delete [] x;
}
void use() {//use array}
};
</code></pre>

<p>or:</p>

<pre><code>class X{
int size = ...;
void create(){ 
    int x[size];
    use(x);
}
void use(int arg[]) {//use arg}
}; 
</code></pre>

<p>which is better? </p>
