CBSE BOARD XII, asked by jacksrider, 8 months ago

What is the similarity between a structure, union and enumeration? (A) all of them let you define new values (B) all of them let you define new data types (C) all of them let you define new pointers (D) all of them let you define new structures

Answers

Answered by rajumandimsb
2

Answer:

(B) all of them let you define new data types

Answered by brokendreams
0

The similarity between a structure of union and enumeration is (b) all of the let you define new data types.

Meaning of Structure;

Structure- defines a data objects in an ordered group. Each data are in structure represents a member of a field.

Meaning of Union;

Union- shows the value of one of its member at one time.

Meaning of Enumeration;

An Enumeration- consists of named values in a list with complete order called as Enumeration constants.

Features of Structure, Union and Enumeration;

  • The data types are stored in the same memory location in the Structure data while the total memory size is added in all its member.
  • In Union data are stored in the same memory location as Structure data though the total memory size depends on the largest element.
  • An Enumeration data type  in a C language representing the set of named constants.

Hence, there is one similarity between Structure, Union, and Enumeration is that creates and new data types for using new values and  logic of operation.

Similar questions