How can an array be an lvalue, if we can't assign to it?
How can I set an array's size at run time? How can I avoid fixed-sized arrays?
help me sir!
An lvalue was defined as an expression to which a value can be assigned.An array is composed of several separate array elements that cannot be treated as a whole for assignment purposes. The following statement is therefore illegal:
int x, y; x = y;
Additionally, you might want to copy the whole array all at once. You can do so using a library function such as the memcpy() function, which is shown here:
memcpy(x, y, sizeof(y));
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.