1.

How To Assign One Array To Another?

Answer»

You can't assign an array to other. Arrays are not lvalue, because they don't refer to one variable, RATHER a set of variables. So they can't be PLACED on the left hand side of an assignment statement. For EXAMPLE the FOLLOWING statement will generate compilation error.
int x[5], y[5];
x = y;

You can't assign an array to other. Arrays are not lvalue, because they don't refer to one variable, rather a set of variables. So they can't be placed on the left hand side of an assignment statement. For example the following statement will generate compilation error.
int x[5], y[5];
x = y;



Discussion

No Comment Found