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 / guest
Ans is B)
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Can you overload the operator+ for short integers?
Can create new c++ operators?
what is data encapsulation in C++?
Mention the ways in which parameterized can be invoked.
What is microsoft c++ redistributable?
Can char be a number c++?
What is a float in c++?
What can I safely assume about the initial values of variables which are not explicitly initialized?
What are friend classes?
How does com provide language transparency?
How the delete operator differs from the delete[]operator?
What is the basic difference between C and C++?
What is the prototype of printf function?
What is the full form of dos?
What are friend classes? What are advantages of using friend classes?