Let's say I have a structure with 2 fields and an implementation of C, which I also have some addition between these fields.
If I create two structure variables and assign each other, will the indentation be equal?
I know that for most compilers this would be so (because they are simply called memcpy), but I want to know what is indicated in the add-on in the standard?
The intention for this question is: can I use memcmp to check for equality of structures.
Let's say I have a compiler that emits code that just assigns all members of the structure instead of executing memcpy , will this be the correct implementation of the assignment of the struct operation?
source share