Union allows to store different data-type in same memory location.
The Output should be 20 because in above union one integer allotted to it therefore size of union will be 4 bytes when a =10 the value on the give address will be 10 when b=20 than 10 will be replaced by 20 so output would be 20