Suppose I have a union u with two members a and b the same type (e.g. int).
union u{ int a,b; char c; };
If I write to a , pass it to the function by value, and the function reads from b , expecting to get the value of a , will there be problems considering a and b are of the same type? Does a member need to be read in order to accurately record member records?
source share