Union u1{ int i; char c;}u2;u2.i=32767;u2.c='a';now the i value gets replaced.If we want to know the data that is saved in the union..internally, without knowing what values that we are using in the prog.that is if just want to know whether a union currently holds an int or a char? If it is a combination of both int and char..we must know even that. and the memory locations at which this data is stored?
Questions by lakshmi_pathuri
Showing Answers 1 - 2 of 2 Answers
Union u1{ int i; char c;}u2;u2.i=32767;u2.c='a';now the i value gets replaced.If we want to know the data that is saved in the union..internally, without knowing what values that we are using in the prog.that is if just want to know whether a union currently holds an int or a char? If it is a combination of both int and char..we must know even that. and the memory locations at which this data is stored?
Profile Answers by lakshmi_pathuri Questions by lakshmi_pathuri
Questions by lakshmi_pathuri