Vidyalelo
C++ Programming · Q10

Structures and Unions in C++

Programming · C++ Programming · question 10

Q10

What is the difference between a structure and a union in C++?

A.
Structures cannot contain member functions
B.
Unions are used for mathematical operations
C.
In a structure, each member has its own memory space, while in a union, all members share the same memory space
Answer
D.
Structures are used for data organization

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board