Size of Union in SystemVerilog

In reply to HemantP_8236:

size of union is determined by its max storage variable . in your case you have 40 bits of b. so size of union is 40 bits