Q:

We cannot initialize an array as a copy of another array, nor is it legal to assign one array to another

0

We cannot initialize an array as a copy of another array, nor is it legal to assign one array to another.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

int a[] = {0, 1, 2}; // array of three ints
int a2[] = a; // error: cannot initialize one array with another
a2 = a; // error: cannot assign one array to another

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now