Beginner Friendly · Hands-on · Free

Difference between Structure And Union in C Tamil - linto.in

Difference between Structure And Union in C Tamil

5 min read Updated Jan 09, 2026
<h1>Difference between Structure and Union </h1> <table class="lin-table"> <thead> <tr> <th>Structure</th> <th>Union</th> </tr> </thead> <tbody> <tr> <td> Keyword : struct </td> <td> Keyword : union </td> </tr> <tr> <td> Each member in a structure occupies and uses its own memory space </td> <td> All the members of a union use the same memory space </td> </tr> <tr> <td> More memory space is required since each member is stored in a separate memory locations </td> <td> Less memory space is required since all member is stored in the same memory locations </td> </tr> <tr> <td> All the members of a structure can be initialized </td> <td> Only the first member of an union can be initialized </td> </tr> <tr> <td> The variables that make up the structure are called Structure variable </td> <td> The variables that make up the union are called union variable </td> </tr> <tr> <td> Individual structure elements are referred through the use of .(dot or membership) operator </td> <td> Individual union elements are referred through the use of .(dot or membership ) operator </td> </tr> <tr> <td> Structure is a user-defined data type. </td> <td> Union is a user-defined data type. </td> </tr> <tr> <td> Possible to have one structure within another structure </td> <td> Unions within union is possible </td> </tr> </tbody> </table>
இது பற்றிய தங்களின் கருத்துகளை இங்கே பதிவிடுங்கள் . இது பயனுள்ளதாக விரும்பினால் மற்றவர்களுக்கும் இதை share செய்யுங்கள்.