ProAnswers.org

Can we initialize unions?

ANSI Standard C allows an initializer for the first member of a union. There is no standard way

of initializing any other member (nor, under a pre-ANSI compiler, is there generally any way of

initializing a union at all).