By using union , we can make optimized code. when we are goin to code then we should remember in mind " Union also a featute" . According to that we should write code.