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
Give two or more real cenario of virtual function and vertual object
#include
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Can static class have constructor?
What is object in oop?
which feature are not hold visual basic of oop?
Why multiple inheritance is not allowed?
Why do we use class?
What is the problem with multiple inheritance?
What is overloading and its types?
i got a backdoor offer in process global,Bangalore..Can i work with it?
Templates mean
Is html an oop?
Why do we use inheritance?
What are oops methods?