Oracle Interview Question

How would you use a union in C?

Interview Answer

Anonymous

Nov 17, 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.