2 ms·
C has Union, while not exactly the same as adt, the essential idea is the same.
by ww520 7y ago
C has Union, while not exactly the same as adt, the essential idea is the same.
- gowld 7y agoA C union is a sum, but not much of a type, since it's never checked (not even at runtime like Python) and using it wrong in your code will silently corrupt your program.