Identify all the errors that occur in each of the following statements. Say “no error” if
there is no error.
Code:(a) vector<int> *vPtr; vPtr = new vector<int>(15); (b) int a[20], b[10]; b = a; (c) int *p = {1,4,9};
Would it be right to say:
a) No error.
b) Cannot copy arrays like that. They have to be the same size and values must be copy one at a time with a for loop.
c) p must point at an array and then dereferenced to output value.