Assume the declaration int *arr;
Which declaration dynamically creates an array of 35 integers? Circle one.
(a) arr = new int;
(b) *arr = int;
(c) arr = new int(35);
(d) *arr = new of int;
answer is a..
first we did a pointer int *arrr
now is asking us which one creates an array of 35 intergers from 0-34
therefore the answer is a,
not c because (35) gives us a value of 35 in the heap.
is this correct?