मराठी

Differentiate Between Structure and Union. - Structured Programming Approach

Advertisements
Advertisements

प्रश्न

Differentiate between structure and union.

फरक स्पष्ट करा

उत्तर

Sr. NO. Structure Union
1. Memory allotted to structure is equal to the space require collectively by all the members of the structure. Memory allotted for a union is equal to the space required by the largest memory of that union
2. Data is more secured in structure. Data can be corrupted in a union.
3. Structure provide ease of programming. Unions are comparatively difficult for programming.
4. Structures require more memory. Unions require less memory.
5. Structure must be used when information of all the member elements of a structure are to be stored. Unions must be used when only one of the member elements of the union is to be stored.
shaalaa.com
Union
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2016-2017 (June) CBCGS
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Course
Use app×