difference between structure and union.
Answer Posted / siva sankari
struct employee
{
int a[20];// for tis size 20 was allocated in memory
char text;// for tis only 1byte of memory space is allocated
}
so totally 21 in size was allocated in memory space
union employee
{
int a[20];// for tis size 20 was allocated in memory
char text;// for tis only 1byte of memory space is allocated
}
but in union it takes only the maximum memory space so for each 20space totally 40 size was allocated in memory space
| Is This Answer Correct ? | 7 Yes | 12 No |
Post New Answer View All Answers
What is class and object with example?
What is persistence in oop?
What is the main feature of oop?
What does no cap mean?
Templates mean
Why is there no multiple inheritance?
• What are the desirable attributes for memory managment?
State what is encapsulation and friend function?
How Do you Code Composition and Aggregation in C++ ?
What exactly is polymorphism?
hi all..i want to know oops concepts clearly can any1 explain??
What is the types of inheritance?
What is oops?what is its use in software engineering?
what are the different types of qualifier in java?
program for insertion ,deletion,sorting in double link list