Yes a union would be the same as a struct, with only one of the subfields filled.