Which uses less memory?
a)
struct astruct
{
int x;
float y;
int v;
};
b)
union aunion
{
int x;
float v;
};
c)
char array[10];
Answer Posted / gourav bhatt
Mr Ranjeet u r wron vecause ib ur case too the answer will
be "b" .thats gud that u find misktake in jaroosh example but
the anser is b coz the union has size 4 .
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is c++ the hardest programming language?
How many types of comments are there in c++?
What is the difference between a declaration and a definition?
What is c++ vb?
Which compiler does turbo c++ use?
How java is different from c and c++?
What is a .lib file in c++?
What are the uses of pointers?
What are c++ redistributables?
What do you mean by const correctness?
Describe friend function & its advantages.
Which operator cannot be overloaded c++?
What is microsoft c++ redistributable 2013?
What are the advantages of using typedef in a program?
What is a linked list in c++?