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
Explain dangling pointer.
Differentiate between a pointer and a reference with respect to c++.
What is polymorphism in c++? Explain with an example?
write a function signature with various number of parameters.
What are containers in c++?
Is there finally in c++?
How do you flush a buffer in c++?
What does count ++ do in c++?
What is the use of seekg in c++?
Describe the process of creation and destruction of a derived class object?
What is the difference between a template and a macro?
What is implicit pointer in c++?
Explain deep copy?
Does c++ have arraylist?
Is multimap sorted c++?