First thing is that if you want to have variable sized array it has to be dynamic array, e.g. this:
int* x = newint[n];
than you can do something like this:
int* x = newint[y] {1, 2};
note that if the initialization is longer than array it will be resized. If you don't specife whole array some variables inside array will be unspecified(they won't have their own value; they will point to some junk from RAM). You can also use empty angle brackets to initialize whole array with 0.