Declare an array named a of ten elements of type int and initialize the elements (starting with the first) to the values 10 , 20 , ..., 100 respectively.
I tried:
array a = {10,20,30,40,50,60,70,80,90,100};
which returned incorrect
No problem. You use the "" when you don't have the values or they are lengthy at the initialization of the array.
So,
int a = new int;
creates a new array of 10 elements as type int. Which later can be filled with values.