store it in a[i] and update array index i
a[i] = dummy;
i++;