Selasa, 20 Desember 2016

How does a union work in C programming

We know that arrays can be used to represent a collection of elements of the same data type like int, float etc. They cannot be used to hold a collection of different types of elements. C supports a structured data type known as a structure, a way for packing data of different data types. A structure is a convenient tool for handling a group of logically related data items. For example, it can be used to represent the details of a student or the details of a text book etc. Unions have the same syntax as that of a structure

The post How does a union work in C programming appeared first on Coding Security.


How does a union work in C programming
read more

Tidak ada komentar:

Posting Komentar