Struct
Struct is a user-defined datatype in C language which allows us to combine data of different types together.
Union
Like Struct, union is a user-defined datatype. In union, all members share the same memory location.
![]() |
| so this picture shows the difference and the form between Struct and Union |
Garvin Moses Tanuwihardjo - Binusian'22

No comments:
Post a Comment