4 ms·
> But assignment is always a very cheap operation in C. That's just not true though, you can assign struct's of an arbitrarily large size to each-other and co
by DSMan195276 4y ago
> But assignment is always a very cheap operation in C.
That's just not true though, you can assign struct's of an arbitrarily large size to each-other and compilers will emit the equivalent of `memcpy()` to do the assignment. They might actually call `memcpy()` automatically depending on the particular compiler.
The fact that if you wrap the array in a struct then you're free to copy it via assignment makes it arbitrary IMO.