C Programming - Structures, Unions, Enums - Discussion

Discussion Forum : Structures, Unions, Enums - General Questions (Q.No. 2)
2.
What is the similarity between a structure, union and enumeration?
All of them let you define new values
All of them let you define new data types
All of them let you define new pointers
All of them let you define new structures
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
50 comments Page 3 of 5.

Nithya said:   1 decade ago
These are the user defined data types. But enumeration only allocate in integer data types. Then how does is allocated for new data types for others?
(1)

Knp said:   1 decade ago
In short structures are used to share different memory locations for variable and union is used to allocate large memory for all variables.
(1)

Keerthana said:   7 years ago
All are user-defined datatypes which allow the user to create their own datatype which can be a combination of int, float, char, etc.
(7)

Reshmi Singh said:   1 decade ago
Nice explanation raju. Enum is basically used for storing different datatypes variables. It is follow indexes like{0, 1, 2, . }.

Yamuna said:   1 decade ago
Since Structure,Union,Enum are all User defined data types so user can use new values...thus logic is simple.. :-)

Sonali Adhav said:   10 years ago
Array.
Pointer.
Structure.
Union.
Enum.

Are the user defined or secondary types of data type in C?
(2)

Vivek said:   1 decade ago
Because these are user defined data type and each one contain own different data type collection.

Pradeep bhupathi said:   2 decades ago
Array, pointer, structure, union, enum - These all are user defind data types in c language.

Pooja said:   1 decade ago
Are structure & union just differ in tums of memory. Is there not any other difference.

Sivaramakrishna said:   1 decade ago
But enum will store's integer constants only. How it can store all types of datatypes.


Post your comments here:

Your comments will be displayed after verification.