What is the similarity between a Structure, Union and enumeration?



What is the similarity between a Structure, Union and enumeration?..

Answer / Asha Gupta

All three are user-defined data types in C: 1. Structures group related variables together. 2. Unions can hold different types of data but occupy the same memory location. 3. Enumerations provide named constants for a set of sequential values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Why is sorting important?

1 Answers  


Write an algorithm to show various operations on ordered list and arrays

1 Answers  


Differentiate between hashmap and treemap.

1 Answers  


Can I provide array size dynamically?

1 Answers  


Which sorting algorithm has minimum number of swaps?

1 Answers  


What is placement new in data structures?

1 Answers  


How can you implement a stack?

1 Answers   NIIT,


Which is better merge or quick sort?

1 Answers  


what are the applications that use Linked lists?

1 Answers  


What is difference between stack and queue?

1 Answers  


Can a tree be empty?

1 Answers  


What are the notations used in Evaluation of Arithmetic Expressions using prefix and postfix forms?

1 Answers  


Categories