#include struct node { int i; char b;
float j; double d;
}; struct node s; int main() {
std::cout<
Answers
Answered by
0
In union, Block Contain maximum size data type like double so the memory contain 8 byte and when we initialize ‘d’ and ‘c’ then ‘d’ value is replace by ‘c’ because memory blocks are same so when we print ‘d’ and ‘c’ value, it will be print 20 and about size I explained in above examples so it will print 16.
Similar questions