Is something similar possible in C++
<p>Here is some sample jave code. Is this possible in C++ too?</p>

<pre><code>public class Example {
    public static void main(String args[]){
        int[][] a = new int[3][];
        a[0] = new int[]{1};
        a[1] = new int[]{1,2};
        a[2] = new int[]{1,2,3};
        display(a);
  }
}
</code></pre>
