initialize array with new

dear all,

i know that we can asign a value to there where a new pointer refers

int *a=new int(99);

can we do that also for an array??
to give the same value to all its contents

int *a=new int[6](4);
no, new[] only default-constructs
ok thank you!!
Topic archived. No new replies allowed.