Pergunta de entrevista da empresa Oracle

How would you use a union in C?

Resposta da entrevista

Sigiloso

17 de nov. de 2011

I explained the definition: that it was a single location in memory with many possible types. Then I said you would use it if a data structure needed a field where its type differed based on the conditions. It would have helped to have a more concrete example.