December 13, 2018

Struct and Union in C Programming


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

Searching and Sorting in C Programming

Searching This is the process by which one searches the group of elements for the desired element. F or example: Binary Search In...