Size of Union in SystemVerilog

Thanks for the reply.
But in which simulator are you getting the output because I am still facing the same issue output is not been displayed .